-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigate.js
36 lines (32 loc) · 994 Bytes
/
navigate.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
import React from 'react';
import Main from './pages/Main';
import FullInfo from './pages/FullInfo';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from "@react-navigation/native";
const Stack = createStackNavigator();
export default function Navigate() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name='Main'
component={Main}
options={{
title: 'Главная',
headerStyle: { backgroundColor: 'chocolate' },
headerTitleStyle: { fontFamily: 'mt-light', textAlign: 'center' }
}}
/>
<Stack.Screen
name='FullInfo'
component={FullInfo}
options={{
title: 'Информация о игре',
headerTitleAlign: 'center',
headerTitleStyle: { fontFamily: 'mt-light' }
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}