-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
executable file
·39 lines (33 loc) · 770 Bytes
/
App.tsx
File metadata and controls
executable file
·39 lines (33 loc) · 770 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
32
33
34
35
36
37
38
39
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React, {useEffect} from 'react';
import {StyleSheet, View} from 'react-native';
import BaseNavigation from './src/navigation';
import {CustomStatusBar} from './src/components';
import {requestPermissions} from './src/utils/permissions';
function App() {
useEffect(() => {
const getAllRequiredPermission = async () => {
await requestPermissions();
};
getAllRequiredPermission();
}, []);
return (
<View style={styles.container}>
<CustomStatusBar />
<BaseNavigation />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: '5%',
paddingHorizontal: 5
},
});
export default App;