2026-10-18 08:49:30 +08:00
|
|
|
import { registerRootComponent } from 'expo';
|
2026-11-09 09:12:26 +08:00
|
|
|
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;
|
2026-10-18 08:49:30 +08:00
|
|
|
registerRootComponent(App);
|