cmvr-wms/mobile-app/index.ts

8 lines
471 B
TypeScript
Raw Normal View History

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);