I've been developing a react native app with Expo on an android emulator and also through expo go on my iPhone (i don't own a mac) and decided to let my iPhone and only focus on my android emulator since it's not practical to keep touching your phone so after a while and until i nearly finished (not finished yet) my app and I want to run it on my iPhone using expo go I did git the error saying
"main" has not been registered .this can happen if:...
just to know the android emulator and also the expo go a android device is working just fine the problem is only on my iPhoneI've been trying a lot of fixes like upgrading my expo-cli and editing my index.js to
import "react-native-gesture-handler";import { registerRootComponent } from "expo";import App from "./App";// registerRootComponent calls AppRegistry.registerComponent('main', () => App);// It also ensures that whether you load the app in Expo Go or in a native build,// the environment is set up appropriatelyregisterRootComponent(App);
can anybody help me with this error and how to get solved on my iPhone and i need the app for iPhone not only for android
this is mypackage.jsonin case it will help
{"main": "index.js","scripts": {"android": "react-native run-android","ios": "react-native run-ios","web": "expo start --web","start": "react-native start" },"dependencies": {"@react-navigation/bottom-tabs": "^5.11.11","@react-navigation/drawer": "^5.12.5","@react-navigation/native": "^5.9.4","@react-navigation/stack": "^5.14.5","@reduxjs/toolkit": "^1.6.0","expo": "~41.0.1","expo-splash-screen": "~0.10.2","expo-status-bar": "~1.0.4","expo-updates": "~0.5.4","firebase": "8.2.3","react": "16.13.1","react-dom": "16.13.1","react-native": "~0.63.4","react-native-elements": "^3.4.2","react-native-gesture-handler": "~1.10.2","react-native-nfc-manager": "^3.7.0","react-native-reanimated": "~2.1.0","react-native-safe-area-context": "3.2.0","react-native-screens": "~3.0.0","react-native-super-grid": "^4.1.3","react-native-unimodules": "~0.13.3","react-native-web": "~0.13.12","react-redux": "^7.2.4","redux": "^4.1.0" },"devDependencies": {"@babel/core": "^7.9.0" },"private": true}
my app.json
{"name": "TAGI","displayName": "TAGI","expo": {"name": "TAGI","slug": "TAGI","version": "1.0.0","assetBundlePatterns": ["**/*" ],"plugins": ["react-native-nfc-manager" ] }}