import { registerRootComponent } from 'expo'; import Constants from 'expo-constants'; import {Platform} from 'react-native'; // Old signed runtimes must not import modules that were added in later APKs. const recovery=Platform.OS==='android'&&Constants.expoConfig?.extra?.environment==='prod'&&Constants.expoConfig?.extra?.legacyInstallerRecovery===true; const App=recovery?require('./src/LegacyUpgrade').default:require('./src/App').default; registerRootComponent(App);