react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

White Screen

Open magrinj opened this issue 10 years ago • 5 comments

Hello,

I have an issue on this package, I follow the steps to add the package on Xcode but when I try to import or require RNFS I got a white screen.

magrinj avatar Mar 01 '16 14:03 magrinj

That's work if I run my app within Xcode but if I run react-native run-ios, I still got a white screen. I don't really understand why.

magrinj avatar Mar 01 '16 14:03 magrinj

@magrinj Without more information on your project setup this is hard to diagnose. If you set up a blank app with RNFS, do you get a white screen?

johanneslumpe avatar Mar 15 '16 10:03 johanneslumpe

Closing as inactive.

johanneslumpe avatar Mar 22 '16 20:03 johanneslumpe

Saw this today. Happens at the moment we do RNFS.downloadFile(). Might be an uncaught error or something?

GeoffreyPlitt avatar Sep 20 '16 19:09 GeoffreyPlitt

Reading file from location and I am getting white screen. async componentDidMount() { try { const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE ) if (granted === PermissionsAndroid.RESULTS.GRANTED) { RNFS.readFile(${RNFS.ExternalStorageDirectoryPath}/Download/mitsui.csv) .then((result) => { insertData(result).then((res) => { this.setState({ loading: false }) }); }).catch((err) => { alert(err); this.setState({ loading: false }) }) } else { this.setState({ loading: false }) } } catch (err) { console.warn(err) this.setState({ loading: false }) } }

it is working fine If I remove readFile

hiteshagja avatar Jan 17 '19 06:01 hiteshagja