-
Notifications
You must be signed in to change notification settings - Fork 1k
Error on iOS with RNFS.read function #1246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue is with the length and position parameters in RNFSManager.m read method: Should be: instead of: Here is a patch file in case others run into this issue: |
I am facing the same issue |
Same issue for me on iOS:
The patch worked |
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",
The text was updated successfully, but these errors were encountered: