mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1import 'react-native-gesture-handler' // must be first
2import '#/platform/polyfills'
3
4import {LogBox} from 'react-native'
5import {registerRootComponent} from 'expo'
6
7import App from '#/App'
8import {IS_TEST} from '#/env'
9
10if (IS_TEST) {
11 LogBox.ignoreAllLogs() // suppress all logs in tests
12} else {
13 LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine
14}
15
16// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
17// It also ensures that whether you load the app in Expo Go or in a native build,
18// the environment is set up appropriately
19registerRootComponent(App)