-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
36 lines (33 loc) · 1.03 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react'
import { AppRegistry, LogBox } from 'react-native'
import { Provider } from 'react-redux'
import { NavigationContainer } from '@react-navigation/native'
import { gestureHandlerRootHOC } from 'react-native-gesture-handler'
import App from './App'
import { navigationRef, isReadyRef } from './src/utils/navigationUtils'
import store from './src/store'
import ThemeProvider from './src/Theme/ThemeProvider'
import { name as appId } from './app.json'
AppRegistry.registerComponent(appId, () => gestureHandlerRootHOC(AppContainer))
const AppContainer = () => {
return (
<Provider store={store}>
<ThemeProvider>
<NavigationContainer
ref={navigationRef}
onReady={() => {
isReadyRef.current = true
}}
>
<App />
</NavigationContainer>
</ThemeProvider>
</Provider>
)
}
LogBox.ignoreLogs([
'Require cycle',
'VirtualizedLists should never',
'Non-serializable values were found in the navigation state',
'Setting a timer',
])