Skip to content

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

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 rn-fetch-blob@0.10.16 --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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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