forked from helium/wallet-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (40 loc) · 1.45 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
37
38
39
40
41
42
43
44
import React from 'react'
import 'react-native-gesture-handler'
import { AppRegistry } from 'react-native'
import { Provider as ReduxProvider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import { persistStore } from 'redux-persist'
import App from './src/App'
import { name as appName } from './app.json'
import './src/utils/i18n'
import AccountStorageProvider from './src/storage/AccountStorageProvider'
import AppStorageProvider from './src/storage/AppStorageProvider'
import LanguageProvider from './src/storage/LanguageProvider'
import NotificationStorageProvider from './src/storage/NotificationStorageProvider'
import store from './src/store/store'
import SolanaProvider from './src/solana/SolanaProvider'
// eslint-disable-next-line no-undef
if (__DEV__) {
import('./ReactotronConfig')
}
export const persistor = persistStore(store)
const render = () => {
return (
<ReduxProvider store={store}>
<PersistGate loading={null} persistor={persistor}>
<LanguageProvider>
<AppStorageProvider>
<AccountStorageProvider>
<SolanaProvider>
<NotificationStorageProvider>
<App />
</NotificationStorageProvider>
</SolanaProvider>
</AccountStorageProvider>
</AppStorageProvider>
</LanguageProvider>
</PersistGate>
</ReduxProvider>
)
}
AppRegistry.registerComponent(appName, () => render)