-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
38 lines (32 loc) · 1.23 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
import "react-native-gesture-handler";
import { StyleSheet, SafeAreaView, StatusBar, LogBox } from "react-native";
import React from "react";
import Navigation from "./src/components/Navigation";
import { myColors } from "./colors";
import * as NavigationBar from "expo-navigation-bar";
import { GestureHandlerRootView } from "react-native-gesture-handler";
const App = () => {
// Auth.signOut();
React.useEffect(() => {
LogBox.ignoreLogs([
"AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage",
]);
}, []);
NavigationBar.setBackgroundColorAsync("black");
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaView style={styles.root}>
<StatusBar barStyle={"light-content"} backgroundColor={"black"} />
<Navigation />
</SafeAreaView>
</GestureHandlerRootView>
);
};
const styles = StyleSheet.create({
root: {
flex: 1,
// marginTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
backgroundColor: myColors.pbgc,
},
});
export default App;