-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (30 loc) · 1.06 KB
/
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
/**
* @format
* @flow strict-local
*/
import { NavigationContainer } from '@react-navigation/native';
import { Provider } from 'react-redux';
import { createStackNavigator } from '@react-navigation/stack';
import * as React from 'react';
import { PersistGate } from 'redux-persist/integration/react';
import Home from './src/component/home';
import Recipe from './src/component/recipe';
import UpdateRecipe from './src/component/updateRecipe';
import persist from './src/store';
const Stack = createStackNavigator();
const persistStore = persist();
export default function App() {
return (
<Provider store={persistStore.store}>
<PersistGate loading={null} persistor={persistStore.persistor}>
<NavigationContainer>
<Stack.Navigator headerMode="none">
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Recipe" component={Recipe} />
<Stack.Screen name="UpdateRecipe" component={UpdateRecipe} />
</Stack.Navigator>
</NavigationContainer>
</PersistGate>
</Provider>
);
}