-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (26 loc) · 804 Bytes
/
App.tsx
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
import React from 'react'
import Router from './router'
import { NavigationContainer } from '@react-navigation/native'
import { RecoilRoot } from 'recoil'
import ApolloWrapper from './app/layout/ApolloWrapper'
import Watch from './app/components/Watch'
import CodePush, { CodePushOptions } from 'react-native-code-push'
function App(): JSX.Element {
return (
<RecoilRoot>
<ApolloWrapper>
<Watch>
<NavigationContainer>
<Router />
</NavigationContainer>
</Watch>
</ApolloWrapper>
</RecoilRoot>
)
}
const options: CodePushOptions = {
checkFrequency: CodePush.CheckFrequency.ON_APP_START,
installMode: CodePush.InstallMode.IMMEDIATE,
mandatoryInstallMode: CodePush.InstallMode.IMMEDIATE,
}
export default CodePush(options)(App)