-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
31 lines (27 loc) · 773 Bytes
/
Copy pathApp.tsx
File metadata and controls
31 lines (27 loc) · 773 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
30
31
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaView, StyleSheet } from 'react-native';
import { PaperProvider } from 'react-native-paper';
import Toast from 'react-native-toast-message';
import { StatusBar } from '@/components';
import { useTheme } from '@/hooks';
import { Routes } from '@/routes';
export default function App() {
const theme = useTheme();
return (
<NavigationContainer>
<PaperProvider theme={theme}>
<StatusBar />
<SafeAreaView style={styles.container}>
<Routes />
<Toast position="bottom" />
</SafeAreaView>
</PaperProvider>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
height: '100%',
},
});