-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
26 lines (24 loc) · 1 KB
/
Copy pathApp.js
File metadata and controls
26 lines (24 loc) · 1 KB
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 {createNativeStackNavigator} from "@react-navigation/native-stack";
import {NavigationContainer} from "@react-navigation/native";
import {StatusBar} from "expo-status-bar";
import {Colors} from "./constants/colors"
import RecipesScreen from "./screens/RecipesScreen";
import RecipeDetailScreen from "./screens/RecipeDetailScreen";
const Stack = createNativeStackNavigator();
export default function App() {
return (
<>
<StatusBar style='dark'/>
<NavigationContainer>
<Stack.Navigator screenOptions={{
headerStyle: {backgroundColor: Colors.primary500},
headerTintColor: Colors.gray700,
contentStyle: {backgroundColor: Colors.gray700}
}}>
<Stack.Screen name="RecipesScreen" component={RecipesScreen} options={{title: 'Recipes List'}}/>
<Stack.Screen name="RecipeDetailScreen" component={RecipeDetailScreen} options={{title: 'Recipe'}}/>
</Stack.Navigator>
</NavigationContainer>
</>
);
}