I have an issue with native base on app start, both iOS or Android
error:(Unable to resolve module `color` from `#appRoot/native-base-theme/variables/platform.js`: Module `color` does not exist in the Haste module map
What I already tried
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
. - Remove haste cache:
rm -rf /tmp/haste-map-react-native-packager-*
. (null)) - Remove Pods and podfile.lock then pod install
- Uninstall app on simulator and device.
- Clean build folder on xcode
- Restart MAC !
Version
native-base: "2.13.5"
react": "16.8.3"
react-moment": "0.9.2"
Update
This error occurred only on debug mode
Please login or Register to submit your answer