react-native-cached-image
react-native-cached-image copied to clipboard
Error on hermes engine: DocumentDir of null
Hello!
I am try to add this library to my project with hermes engine.
But when i add ImageCacheProvider
to wrap my app, i have an error;
Error: Requiring module "node_modules/react-native-cached-image/index.js", which threw an exception: TypeError: Cannot read property 'DocumentDir' of null, js engine: hermes
Example wrapper:
<ImageCacheProvider urlsToPreload={[]} onPreloadComplete={() => console.log('Images preloaded')}>
... APP CODE HERE ...
</ImageCacheProvider>
React Native version: 0.64.1 Tested on Android 11 (Samsung S10, One UI 3.1)