-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
48 lines (45 loc) · 1.26 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
39
40
41
42
43
44
45
46
47
48
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StyleSheet, View, Text, Image } from 'react-native';
import ImageView from './Screens/ImageView';
import { StatusBar } from 'expo-status-bar';
import Tabs from './Tabs';
const Stack = createNativeStackNavigator();
export default function App() {
const headerStyles = {
headerStyle: {
backgroundColor: "#f4511e",
},
headerTintColor: "#fff",
headerTitleStyle: {
fontWeight: 'bold'
}
};
return (
<NavigationContainer>
<Stack.Navigator initialRouteName={'Tabs'}>
<Stack.Screen name="Tabs" component={Tabs} options={{ headerShown: false }}/>
<Stack.Screen name="ImageView" component={ImageView} options={{
title: "Image View",
headerTintColor: "#fff",
headerTransparent: true,
headerTitle: ""
}} />
</Stack.Navigator>
<StatusBar style="light" />
</NavigationContainer>
);
}
const styles = StyleSheet.create({
header: {
backgroundColor: 'black',
paddingTop: 50,
paddingBottom: 10,
paddingLeft: 10,
},
headerText: {
fontSize: 25,
color: 'white'
}
});