'react-native upload to device a txt in FTP with EXPO
I need to be able to read a folder on a server and bring all the files that have the TXT extension.
I'm working with react-native and EXPO Could anyone help me?
I used reat-native-ftp but without achieving it
The APP will be used with Android, not IOS
function connectFTP(){
FTP.setup(server,port) //Setup host
FTP.login(userServer,passServer).then(
(result)=>{
FTP.list(".").then(
(result)=>{
console.log(result);
}
);
},
(error)=>{
alert(error);
}
)
}
ERROR
Uncaught TypeError: react_native_ftp__WEBPACK_IMPORTED_MODULE_12__.default is undefined
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
