-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
26 lines (25 loc) · 795 Bytes
/
App.tsx
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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './components/HomeScreen';
import AddProduct from "./components/AddProduct";
import Product from './context/Product';
const Stack = createStackNavigator();
console.disableYellowBox = true;
const App = () => {
return (
<Product>
<NavigationContainer>
<Stack.Navigator
initialRouteName="Home"
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Add" component={AddProduct} />
</Stack.Navigator>
</NavigationContainer>
</Product>
);
};
export default App;