itinance / itinance/react-native-fs

touch is not a function

Open
#312 0 comments 0 reactions 0 assignees View on GitHub
bug
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",
```

screen shot 2017-07-09 at 6 32 56 pm

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.