-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
25 lines (20 loc) · 602 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
import React, {useState} from 'react';
import {Text, View} from 'react-native';
import {AppLoading} from 'expo';
import {enableScreens} from 'react-native-screens';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import Navigator from './navigation/MealsNavigation';
import mealsReducer from './store/reducers/meals';
enableScreens();
const rootReducer = combineReducers({
meals: mealsReducer,
});
const store = createStore(rootReducer);
export default function App() {
return (
<Provider store={store}>
<Navigator />
</Provider>
);
}