index.js -> index.ts

This commit is contained in:
Samuel Newman
2026-06-29 16:53:40 +03:00
parent a5ed41fa0f
commit 96b3c74494
2 changed files with 0 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import 'react-native-gesture-handler' // must be first
import '#/platform/polyfills'
import {LogBox} from 'react-native'
import {registerRootComponent} from 'expo'
import App from '#/App'
if (process.env.NODE_ENV === 'test') {
LogBox.ignoreAllLogs() // suppress all logs in tests
} else {
LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine
}
// 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)