-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (30 loc) · 896 Bytes
/
App.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { createStore,combineReducers, applyMiddleware} from 'redux';
import { Provider} from 'react-redux';
import ReduxThunk from 'redux-thunk';
import authReducer from './store/reducers/auth';
import patientReducer from './store/reducers/patient';
import medicineReducer from './store/reducers/medicine';
import reasonReducer from './store/reducers/reason';
import AppNavigator from './navigation/AppNavigator';
const rootReducer = combineReducers({
auth: authReducer,
patient: patientReducer,
medicine: medicineReducer,
reason: reasonReducer
});
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
export default function App() {
return (
<Provider store={store}>
<AppNavigator/>
</Provider>
);
}