2023-03-13 22:01:43 +01:00
|
|
|
import 'react-native-gesture-handler' // must be first
|
2023-11-30 01:00:13 +01:00
|
|
|
import '#/platform/polyfills'
|
2024-08-12 23:00:15 +02:00
|
|
|
|
|
|
|
import {LogBox} from 'react-native'
|
2023-03-13 22:01:43 +01:00
|
|
|
import {registerRootComponent} from 'expo'
|
|
|
|
|
2023-11-30 01:00:13 +01:00
|
|
|
import App from '#/App'
|
2024-08-12 23:00:15 +02:00
|
|
|
import {IS_TEST} from '#/env'
|
2023-12-05 21:50:56 +01:00
|
|
|
|
|
|
|
if (IS_TEST) {
|
|
|
|
LogBox.ignoreAllLogs() // suppress all logs in tests
|
|
|
|
} else {
|
|
|
|
LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine
|
|
|
|
}
|
|
|
|
|
2023-03-13 22:01:43 +01:00
|
|
|
// 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
|
|
|
|
registerRootComponent(App)
|