itinance / itinance/react-native-fs

TypeError: Cannot read property 'RNFSFileTypeRegular' of null

Open
#1,142 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have followed the instructions in the " Usage (Android)" section , then I inserted in my App.js, in the App function, these two lines:

```
const App: () => Node = () => {
var RNFS = require('react-native-fs');
var path = RNFS.DocumentDirectoryPath + '/test.txt';
....
```

but when I run:

`npx react-native start`

I get

`TypeError: Cannot read property 'RNFSFileTypeRegular' of null, js engine: hermes`

I really don't know what to do, any lead ?

Thanks a lot

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.