react-native iOS app cannot run due to native-base module error
See original GitHub issueError Log:
error: bundling: UnableToResolveError: Unable to resolve module `react-native/Libraries/Renderer/shims/ReactNativePropRegistry` from `/Users/hiteshmac/Documents/ReactApp/santosh/Connect3App/node_modules/native-base/dist/src/Utils/computeProps.js`: Module does not exist in the module map or in these directories:
/Users/hiteshmac/Documents/ReactApp/santosh/Connect3App/node_modules/native-base/node_modules/react-native/Libraries/Renderer/shims
, /Users/hiteshmac/Documents/ReactApp/santosh/Connect3App/node_modules/react-native/Libraries/Renderer/shims
package.json
"dependencies": {
"Base64": "^1.0.1",
"babel-plugin-transform-remove-console": "^6.8.4",
"buffer": "^5.0.6",
"native-base": "^2.1.4",
"pubsub-js": "^1.5.7",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-android-wifi": "0.0.13",
"react-native-background-timer": "^1.0.3",
"react-native-deprecated-custom-components": "^0.1.0",
"react-native-hyperlink": "0.0.9",
"react-native-progress": "^3.2.1",
"react-native-swipe-gestures": "^1.0.2",
"react-native-table-component": "^1.0.1",
"react-native-udp": "^2.0.0",
"react-navigation": "^1.0.0-beta.11"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "1.9.2",
"jest": "20.0.3",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
},
"browser": {
"dgram": "react-native-udp"
}
}
react-native version - 0.44.0 native-base version - ^2.1.4
I have spent the whole day behind it. but no luck.
Please Help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Unable to Resolve Module in React Native App - Stack Overflow
by checking the app.js import lines. File location was wrong. I made error in below line,. import Card from "../components/Card";.
Read more >Installation - NativeBase
Refer the guides shown below to setup NativeBase in your React app. Install in Expo project. Follow this guide to install NativeBase in...
Read more >Troubleshooting | React Navigation
Sometimes it might even be due to a corrupt installation. If clearing cache didn't work, try deleting your node_modules folder and run npm...
Read more >react-native-svg - npm
react-native -svg provides SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.
Read more >unable to resolve module react-native-elements - You.com
Run create-react-native-app test in Terminal · Open package. · Run rm -rf node_modules && npm install · Run npm start · Open App...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ElliottJRo I used CRNA, and just realised that it’s not using the latest RN, it’s on 0.45.1. Switched to NativeBase v2.2.0 and all is working.
@shivrajkumar @santosh-btc Found the reason why: https://github.com/GeekyAnts/react-native-easy-grid/commit/d87343be45440b42c65b532ee90837c71a508d07
Apparently it was fixed with https://github.com/GeekyAnts/react-native-easy-grid/commit/43fd6ff49788a27ddc28e4bf364f28cd39c18e46
But for some reason 0.1.13 was released then another was released 0.1.11 (which works with rn 0.46) https://github.com/GeekyAnts/react-native-easy-grid/issues/41
Current fix: Add
"react-native-easy-grid": "0.1.11"
to dep Also added"color": "0.11.1"
since I am am using custom themeNOTE This is NOT for CRNA - for CRNA use RN 0.45.1 + NativeBase 2.2.0: