itinance / itinance/react-native-fs
touch is not a function
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I'm receiving this error when trying to `touch` a file, eg:
```javascript
console.log(RNFS)
// file don't exists
RNFS.touch(DATABASE_PATH).then(() => {
// do something
})
```
```json
"react-native": "^0.45.1",
"react-native-fs": "^2.3.3",
```

As you see, `touch` function is not in the `RNFS` object
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the RNFS API exposed by react-native-fs 2.3.3 and compare it with the reported RNFS.touch call. Determine whether touch is expected to exist for the shown React Native version, then verify that the API behavior or its documentation matches the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100