File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import * as React from 'react';
33import { NavigationContainer } from '@react-navigation/native' ;
44import { createNativeStackNavigator } from '@react-navigation/native-stack' ;
55import { HomeScreen } from './src/screens/home' ;
6- import { DetailsScreen } from './src/screens/details' ;
6+ import { AboutScreen } from './src/screens/about' ;
7+ import { StyleSheet , SafeAreaView } from 'react-native' ;
78
89const Stack = createNativeStackNavigator ( ) ;
910
@@ -16,8 +17,8 @@ function RootStack() {
1617 initialParams = { { message : 'Hello World' } }
1718 />
1819 < Stack . Screen
19- name = "Details "
20- component = { DetailsScreen }
20+ name = "About "
21+ component = { AboutScreen }
2122 initialParams = { { depth : 1 } }
2223 />
2324 </ Stack . Navigator >
@@ -26,8 +27,17 @@ function RootStack() {
2627
2728export default function App ( ) {
2829 return (
29- < NavigationContainer >
30- < RootStack />
31- </ NavigationContainer >
30+ < SafeAreaView style = { styles . root } >
31+ < NavigationContainer >
32+ < RootStack />
33+ </ NavigationContainer >
34+ </ SafeAreaView >
3235 ) ;
33- }
36+ }
37+
38+ const styles = StyleSheet . create ( {
39+ root : {
40+ flex : 1 ,
41+ backgroundColor : '#ECEDE9' ,
42+ } ,
43+ } ) ;
You can’t perform that action at this time.
0 commit comments