-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
36 lines (34 loc) · 941 Bytes
/
App.tsx
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React,{useEffect} from 'react';
import {SafeAreaView,StyleSheet,Text,View,Platform} from 'react-native';
import SplashScreen from 'react-native-splash-screen';
// import Intro from './src/screens/intro/intro';
// import Signup from './src/screens/authen/Signup'
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
import StackNavigation from './src/navigation';
import { Colors } from 'react-native/Libraries/NewAppScreen';
const myTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background:'#fff'
}
}
function App() {
useEffect(() => {
if (Platform.OS === "android") { SplashScreen.hide(); }
}, []);
return (
<View style={{flex:1}}>
<NavigationContainer theme={myTheme}>
<StackNavigation/>
</NavigationContainer>
</View>
);
};
export default App;