Skip to content

Error on hermes engine: DocumentDir of null #210

Open
@TTATPuOT

Description

@TTATPuOT

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions