-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
38 lines (37 loc) · 1.46 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
import React from 'react'
import {AppRegistry} from 'react-native';
import App from './APP/containers/app';
import 'react-native-gesture-handler';
import { Root } from 'native-base';
import {name as appName} from './app.json';
import {Provider} from 'react-redux';
import PushNotificationManager from './PushNotificationManager'
import { combineReducers, applyMiddleware, createStore } from 'redux';
import { appStateReducer, sportsBookReducer, profileReducer, modalReducer, homeDataReducer, casinoReducer, liveDataReducer, prematchDataReducer, competitionDataReducer, gameViewDataReducer, betslipDataReducer, betHistoryDataReducer } from './APP/actionReducers';
import thunk from 'redux-thunk';
const reducers = combineReducers({
appState:appStateReducer,
sportsbook:sportsBookReducer,
profile:profileReducer,
homeData:homeDataReducer,
casinoMode:casinoReducer,
liveData:liveDataReducer,
sb_modal:modalReducer,
betslip:betslipDataReducer,
betHistoryData:betHistoryDataReducer
prematchData:prematchDataReducer,
competitionData:competitionDataReducer,
gameViewData:gameViewDataReducer,
}),store = createStore(reducers,applyMiddleware(thunk))
, AppView = () => {
return (
<Root>
<Provider store={store}>
<PushNotificationManager>
<App />
</PushNotificationManager>
</Provider>
</Root>
)
}
AppRegistry.registerComponent(appName, () => AppView);