olofd / react-native-photos-framework

A modern and comprehensive CameraRoll/iCloud-library-API for React Native 📸 📹
MIT License
220 stars 99 forks source link

Unable to resolve module `react/lib/ReactPropTypes` #51

Closed rossmartin closed 7 years ago

rossmartin commented 7 years ago

I'm using RN 0.45.1 and the import ReactPropTypes from 'react/lib/ReactPropTypes' in src/index.js fails. It results in "Module does not exist in the module map..."

The PropTypes module is not used on src/index.js so you can safely comment it out. If PropTypes are needed you can use import ReactPropTypes from 'prop-types'.

gameboyVito commented 7 years ago

Same issue here Unable to resolve module react/lib/ReactPropTypes, and I am using react-native@0.45.1

gameboyVito commented 7 years ago

solution: just remove import ReactPropTypes from 'react/lib/ReactPropTypes';

rossmartin commented 7 years ago

This appears to be fixed by https://github.com/olofd/react-native-photos-framework/commit/360cc57a64af632e18935d4a090053dd56601e83

If the issue is still present just comment out import ReactPropTypes from 'react/lib/ReactPropTypes'; in src/index.js.