navico-mobile / react-native-ftp-client Goto Github PK
View Code? Open in Web Editor NEWA ftp client library for react native
License: MIT License
A ftp client library for react native
License: MIT License
Hi i'm geting below error:
[Error: list error Posix(49) Can't assign requested address]
const ftpSetup = {
ip_address: 'xxx.xxx.xxx.xxx',
port: 21,
username: 'username',
password: 'password'
},
export const FTPService = {
setupConnect() {
FTP.setup(ftpSetup);
},
FTPServiceList: async (remote_path:string) => {
return await FTP.list(remote_path);
},
}
==============calling==============
try {
FTPService.setupConnect();
const list = await FTPService.FTPServiceList('/path');
console.log(list);
} catch (error) {
console.log(error);
}
[Error: list error Posix(49) Can't assign requested address]
RectNative ver = 0.73
Can someone tell what's the issue?
My setup working normally on android but iOS got that error.
Error: list error unknown_domain(550) Requested action not taken. File unavailable (e.g., file not found, no access).
xcode log: domain = 6, error = 550, errorMessage = Requested action not taken. File unavailable (e.g., file not found, no access).
const FTPSetup = (ftpHost) => {
FtpClient.setup({
ip_address: "194.5x.xxx.xxx",
port: 21,
username: 'uxxxxxx.username.online',
password: 'xxxxxxxx'
})
}
export const getListFile = async (ftpHost, remote_file_path = '/public_html') => {
FTPSetup(ftpHost)
try {
return await FtpClient.list(remote_file_path)
} catch (error) {
console.log(error)
Alert.alert('Error', error.message)
return []
}
}
please help :(
Any guide on how to install this library?
I have downloaded the library and put it in node_modules, included project in settings.gradle but when I imported package in mainApplication.java (import com.reactlibrary.ftpclient.RNFtpClientPackage;), I get error package does not exist.
I'm trying to install react-native-ftp for my ios app but i'm getting the below error.
here are the steps i follwed,
npm install react-native-ftp --save
react-native link react-native-ftp
cd ios && pod install
[!] There are multiple dependencies with different sources for RNFtp in Podfile:
RNFtp (from ../node_modules/react-native-ftp/ios)
RNFtp (from ../node_modules/react-native-ftp)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.