itinance / itinance/react-native-fs
Error when reading large file on Android
Open
question
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to read 2xxmb crypt12 file from FS.
When I trying to run `await RNFS.readFile(`${RNFS.ExternalStorageDirectoryPath}/Whatsapp/Databases/msgstore.db.crypt12`)`, it prompts up
```
Could not invoke RNFSManager.readFile
null
Failed to allocate a 536870928 byte allocation with 25165824 free bytes and 248MB until OOM, max allowed footprint 301365936, growth limit 536870912
```
I have already set `android:hardwareAccelerated="false"` and `android:largeHeap="true"` in AndroidManifest.xml but no luck.
How can I solve it? Thank you
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.