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

Not working on react-native: 0.65.1

Open marhu98 opened this issue 4 years ago • 2 comments

The title says it all, when I run the basic example in latest react native 0.65.1 I get the following error:

 ERROR  TypeError: undefined is not an object (evaluating 'path.startsWith')

This error is located at:
    in App (at renderApplication.js:48)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:133)
    in AppContainer (at renderApplication.js:41)
    in gitKeep(RootComponent) (at renderApplication.js:57)
 ERROR  TypeError: undefined is not an object (evaluating 'path.startsWith')

This error is located at:
    in App (at renderApplication.js:48)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:133)
    in AppContainer (at renderApplication.js:41)
    in gitKeep(RootComponent) (at renderApplication.js:57)

For clarification this is the example from Basic Usage: Read filesystem.

marhu98 avatar Sep 06 '21 19:09 marhu98

Same error with react native 0.64.0 package.txt But other examples works

seag86 avatar Sep 15 '21 09:09 seag86

change RNFS.MainBundlePath to RNFS.DocumentDirectoryPath

jhon-hst avatar Sep 07 '22 00:09 jhon-hst