Files
2026-01-12 16:01:32 +01:00

18 lines
489 B
JavaScript

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 appropriately
function HeadlessCheck({ isHeadless }) {
if (isHeadless) {
// App has been launched in the background by iOS, ignore
return null
}
return <App />
}
registerRootComponent(App, () => HeadlessCheck)