-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (32 loc) · 1.16 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
import React from 'react';
import { StatusBar } from 'react-native';
import { StyleSheet, Text, View } from 'react-native';
import { Icon } from 'native-base';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NativeBaseProvider, Box } from "native-base";
import MainScreen from './components/MainScreen';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NativeBaseProvider>
<StatusBar backgroundColor="white" barStyle="dark-content" />
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Main"
component={MainScreen}
options={{
title: '#OOTD', // 헤더 타이틀
headerTitleAlign: 'center',
headerLeft: () => ( // 헤더 왼쪽 아이콘
<MaterialIcons name='camera' size = {24} style={{ paddingLeft: 10 }} />
),
}}
/>
</Stack.Navigator>
</NavigationContainer>
</NativeBaseProvider>
);
}