-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.tsx
More file actions
29 lines (26 loc) · 703 Bytes
/
App.tsx
File metadata and controls
29 lines (26 loc) · 703 Bytes
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
import 'react-native-gesture-handler';
import React, { useEffect, useState } from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
const App = () => {
return (
<GestureHandlerRootView style={styles.flex}>
<SafeAreaProvider>
<StatusBar style="auto" />
</SafeAreaProvider>
</GestureHandlerRootView>
);
};
const styles = StyleSheet.create({
flex: {
flex: 1,
},
center: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
export default App;