react-native-linear-gradient: Unable to resolve module `react-native/Libraries/StyleSheet/ColorPropType.js`
Unable to resolve module react-native/Libraries/StyleSheet/ColorPropType.js in react-native-linear-gradient/index.ios.js and react-native-linear-gradient/index.android.js with latest React-Native v0.57.3
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 3
- Comments: 24 (4 by maintainers)
@nwaughachukwuma
copy this file
to this location
then rename it to ColorPropType.js (remove Deprecated)
this should fix the issue
Updating to 2.5.4 changed my error to:
Hey guys, @topwebtek and @radex, am having this issue in version 0.58.0 and have not been able to fix it. What could be responsible? I have done
npm start -- --reset-cacheyet, error persists. Any help will be appreciated@radex in
react-native@0.58-rc.0that file has been moved toLibraries/DeprecatedPropTypes/DeprecatedColorPropType.js. Might need some conditional require to work with old and new versions 🤔Definitely not a long term fix.
edit index.android.js and save , or delete all content of the index.android.js and recover , i fixed it
This error disappeared once I upgraded to react-native 0.59.4 and react-native-linear-gradient 2.5.4
Should this be closed?
OK thanks so much. But the problem is that I dont build locally. I use app center to automate my build process
I didn’t do anything 😂