I can fix that inssue with following changes in my projecct, im create a new file called index.ts(im use typescript) and add in this file add:
import { AppRegistry, } from "react-native";
import { registerRootComponent } from "expo";
import App from "./App";
AppRegistry.registerComponent("App", () => App);
registerRootComponent(App);
besides change the "main" field in package.json by index file
{
"name": "paondees-client-ts",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@eva-design/eva": "^2.2.0",
"@react-native-async-storage/async-storage": "1.21.0",
"@react-navigation/drawer": "^6.6.6",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@react-navigation/stack": "^6.3.20",
"@ui-kitten/components": "^5.3.1",
"expo": "^50.0.5",
"expo-location": "~16.5.2",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.73.2",
"react-native-geolocation": "^1.0.0",
"react-native-gesture-handler": "~2.14.0",
"react-native-maps": "1.10.0",
"react-native-notifications": "^5.1.0",
"react-native-reanimated": "~3.6.2",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-svg": "14.1.0",
"react-native-vector-icons": "^10.0.3",
"styled-components": "^6.1.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "~18.2.45",
"@types/react-native-vector-icons": "^6.4.18",
"@types/react-navigation": "^3.4.0",
"@types/styled-components": "^5.1.34",
"typescript": "^5.1.3"
},
"private": true
}
sorry for my english level
.expo
.expo-shared
package-lock.json
andnode_modules
and if you are using yarn thenyarn.lock
. And then runningnpm run start
did the tricknpm i && npm run start
I meant actually. Best of luck to you @sean-h