Created
May 30, 2020 05:50
-
-
Save iksena/ef48a2158cbff8f540b1fb68365dad20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { createStore } from 'redux'; | |
import { SafeAreaView } from 'react-native'; | |
import { Provider } from 'react-redux'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import NavigationStacks from './app/Navigations'; | |
import cartReducer from './app/Reducers/Cart.reducer'; | |
export default function App(): JSX.Element { | |
return ( | |
<Provider store={createStore(cartReducer)}> | |
<SafeAreaView style={{ flex: 1 }}> | |
<NavigationContainer> | |
<NavigationStacks /> | |
</NavigationContainer> | |
</SafeAreaView> | |
</Provider> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment