Skip to content

TypeError: Cannot read property 'DocumentDir' of undefined #13

Open
@lentesta

Description

@lentesta

I get this error simply by importing the component into my code:

import { CachedImage } from 'react-native-image-cache-wrapper';

Here are the commands I used to install the component:

$ npm install react-native-image-cache-wrapper --save
$ npm install [email protected] --save
$ react-native link rn-fetch-blob
$ RNFB_ANDROID_PERMISSIONS=true react-native link

If I comment out the import, the code runs without error or warning messages.

I'm running react-native version 0.61.4. I'm also running Expo 36.0.0, if that helps.

Thanks!

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