2023-03-13 16:01:43 -05:00
|
|
|
import 'react-native-gesture-handler' // must be first
|
2023-11-29 18:00:13 -06:00
|
|
|
import '#/platform/polyfills'
|
2024-08-12 14:00:15 -07:00
|
|
|
|
|
|
|
import {LogBox} from 'react-native'
|
2023-03-13 16:01:43 -05:00
|
|
|
import {registerRootComponent} from 'expo'
|
|
|
|
|
2023-11-29 18:00:13 -06:00
|
|
|
import App from '#/App'
|
2023-12-05 14:50:56 -06:00
|
|
|
|
2024-12-13 17:14:41 +00:00
|
|
|
if (process.env.NODE_ENV === 'test') {
|
2023-12-05 14:50:56 -06:00
|
|
|
LogBox.ignoreAllLogs() // suppress all logs in tests
|
|
|
|
} else {
|
|
|
|
LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine
|
|
|
|
}
|
|
|
|
|
2023-03-13 16:01:43 -05: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)
|