When I start my React native expo project with expo go, there doesn’t seem to be a problem.but when I run it with expo android:run or npx react-native start, I got errors.I got a lot of errors, I solved the errors, and then I encountered this error. JDK17 is the appropriate version and I think that this installed error is this or android sdk because when I say cmd>java -v, I can’t get a response that it is installed.
I use android studio,
expo version 50,
react native 0.73,6
node 21.5.0
jdk 17 (not seeing i guess,ı set enviroment variables)
gradle 8.3
everything looks compatible, the application is bundled and I encounter this error while running and I have been dealing with it for 2 days.
error :
`Invariant Violation: TurboModuleRegistry.getEnforcing(…): ‘RNCDatePicker’ could not be found. Verify that a module by this name is registered in the native bina
ry.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {“NativeModules”:[“PlatformConstants”,”LogBox”,”SourceCode”,”Timing”,”AppState”,”BlobModule”,”WebSocketModule”,”DevSettings”,”DevToolsSettingsManager”,”Networking”,”Appearance”,”DevLoadingView”,”HeadlessJsTaskSupport”,”DeviceInfo”,”UIManager”,”DeviceEventManager”,”Nati
veAnimatedModule”,”SoundManager”,”I18nManager”,”ImageLoader”,”StatusBarManager”,”StatusBarManager”,”RNCAsyncStorage”],”TurboModules”:[],”NotFound”:[“NativePerformanceCxx”
,”NativePerformanceObserverCxx”,”RedBox”,”BugReporting”,”RNCSafeAreaContext”,”FrameRateLogger”,”KeyboardObserver”,”PlatformLocalStorage”,”RNC_AsyncSQLiteDBStorage”,”RNCDatePicker”]}, js engine: hermes
LOG Running “main” with {“rootTag”:11}
ERROR Invariant Violation: “main” has not been registered. This can happen if:
- Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
- A module failed to load due to an error and
AppRegistry.registerComponent
wasn’t called., js engine: hermes
info Stopping server
`
Package.json:
"name": "reminder",
"version": "1.0.0",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@gorhom/bottom-sheet": "^4.6.1",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-native-firebase/app": "^19.2.2",
"@react-native-firebase/auth": "^19.2.2",
"@react-navigation/drawer": "^6.6.15",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@reduxjs/toolkit": "^2.2.3",
"@types/react": "~18.2.45",
"expo": "^50.0.17",
"expo-localization": "~14.8.4",
"expo-status-bar": "~1.11.1",
"i18n-js": "^4.4.3",
"lottie-react-native": "^6.5.1",
"nativewind": "^2.0.11",
"react": "18.2.0",
"react-native": "0.73.6",
"react-native-calendar-strip": "^1.4.2",
"react-native-calendars": "^1.1304.1",
"react-native-datepicker": "^1.7.2",
"react-native-gesture-handler": "^2.14.0",
"react-native-modal-datetime-picker": "^17.1.0",
"react-native-onboarding-swiper": "^1.2.0",
"react-native-reanimated": "~3.6.2",
"react-native-responsive-screen": "^1.4.2",
"react-native-toast-message": "^2.2.0",
"react-native-vector-icons": "^10.0.3",
"react-navigation": "^5.0.0",
"react-redux": "^9.1.0",
"redux": "^5.0.1",
"rn-emoji-keyboard": "^1.6.1",
"typescript": "^5.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"tailwindcss": "^3.3.2"
},
"private": true
}
index:js for second error :
npx react-native-doctor says:
I’m expecting to resolve those errors