Skip to content
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

Error on hermes engine: DocumentDir of null #210

Open
TTATPuOT opened this issue Jun 19, 2021 · 0 comments
Open

Error on hermes engine: DocumentDir of null #210

TTATPuOT opened this issue Jun 19, 2021 · 0 comments

Comments

@TTATPuOT
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant