Created
April 8, 2021 17:23
-
-
Save MosesEsan/788d9d1e8486eed920701a4aa1127071 to your computer and use it in GitHub Desktop.
Trade Journal App Router
This file contains hidden or 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 {NavigationContainer} from '@react-navigation/native'; | |
import {createStackNavigator} from '@react-navigation/stack'; | |
import HomeScreen from './scenes/Home'; | |
import AddEditScreen from './scenes/AddEdit'; | |
import HomeProvider from "./provider"; | |
const Stack = createStackNavigator(); | |
export default function App() { | |
return ( | |
<HomeProvider> | |
<NavigationContainer> | |
<Stack.Navigator mode="modal"> | |
<Stack.Screen name="Home" component={HomeScreen}/> | |
<Stack.Screen name="AddEdit" component={AddEditScreen} options={{ headerShown: false }}/> | |
</Stack.Navigator> | |
</NavigationContainer> | |
</HomeProvider> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment