-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
38 lines (34 loc) · 1.32 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
35
36
37
38
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import Home from "./Screen/Home";
import ReviewDetails from "./Screen/reviewDetails";
import { useFonts } from "expo-font";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Header from "./shared/Header";
import React from "react";
const Stack = createNativeStackNavigator();
export default function App() {
const [fontLoaded] = useFonts({
"Poppins-Regular": require("./assets/fonts/Poppins-Regular.ttf"),
"Poppins-Bold": require("./assets/fonts/Poppins-Bold.ttf"),
});
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home"
screenOptions={{ headerStyle: {
backgroundColor: '#eee',
},
headerTintColor: '#000',
headerTitleStyle: {
fontWeight: 'bold',
fontSize:25,
},}}
>
<Stack.Screen name="Home" component={Home} options={ {headerTitle: ()=> <Header/>,}}/>
<Stack.Screen name="Review" component={ReviewDetails} options={({route})=>({title:route.params.title})} />
</Stack.Navigator>
</NavigationContainer>
);
}