jayesbe / react-native-cacheable-image

An Image Component for React Native that will cache itself to disk.
MIT License
304 stars 78 forks source link

Undefined is not an object when import cacheable-image #65

Closed MERTKIRKALI closed 6 years ago

MERTKIRKALI commented 6 years ago

version: "react-native": "^0.54.0", i alread installed all dependecy, and link react-native-fs and rebuild my project.

when i run npm ls command it will give me this,

npm ERR! peer dep missing: react@^16.3.0-alpha.1, required by react-native@0.54.0
npm ERR! peer dep missing: react-native@^0.51.0, required by react-native-fs@2.9.11
npm ERR! peer dep missing: react-native@^0.51.0, required by react-native-fs@2.9.11

When i add just this line import CacheableImage from 'react-native-cacheable-image';

i have this error

e3109bc8-4a44-4052-97d8-1e8b555f434c

image.js does not have import PropTypes from 'prop-types'; is this be a problem ? or react-native-fs want react-native version 0.51 ?

Does anyone can work with react native 0.54 ?

LorandP commented 6 years ago

This happened to me as well....

nic-thomson commented 6 years ago

the fix is here the fix is here in https://github.com/jayesbe/react-native-cacheable-image/pull/61/commits/946531f6fba9c377be6dfcbfd1eaeb1edf621363