-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
43 lines (39 loc) · 1.05 KB
/
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
37
38
39
40
41
42
43
import React from 'react';
import { StyleSheet, SafeAreaView, StatusBar } from 'react-native';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import {
DIAL_DIAMETER,
DIAL_BACKGROUND_COLOR,
DIAL_COLOR
} from './src/constants';
import { PasscodeProvider } from './src/hooks/usePasscode';
import { Header } from './src/components/Header';
import { RotaryDial } from './src/components/RotaryDial';
const App = () => {
return (
<PasscodeProvider>
<SafeAreaView style={styles.container}>
<StatusBar
translucent
backgroundColor='transparent'
barStyle='dark-content'
/>
<Header />
<RotaryDial
backgroundColor={DIAL_BACKGROUND_COLOR}
diameter={DIAL_DIAMETER}
color={DIAL_COLOR}
/>
</SafeAreaView>
</PasscodeProvider>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: DIAL_COLOR,
alignItems: 'center',
justifyContent: 'center'
}
});
export default gestureHandlerRootHOC(App);