olofd/react-native-photos-framework

Unable to resolve module `react/lib/ReactPropTypes`

rossmartin opened this issue · 3 comments

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'.

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

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

This appears to be fixed by 360cc57

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