itinance / itinance/react-native-fs

Error on iOS with RNFS.read function

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

Description

When attempting to read a file with RNFS.read like this:

`const chunk = await RNFS.read(uri, CHUNK_SIZE, position, 'base64') `

I get this error:
[Error: RNFSManager.read(): Error while converting JavaScript argument 1 to Objective C type NSInteger. Objective C type NSInteger is unsupported.]

"react-native-fs": "^2.20.0",
"react-native": "0.76.5",

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.