-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
47 lines (41 loc) · 1.42 KB
/
Copy pathApp.tsx
File metadata and controls
47 lines (41 loc) · 1.42 KB
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
44
45
46
47
import 'react-native-gesture-handler';
import React from 'react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {theme} from './theme';
import useCachedResources from './hooks/useCachedResources';
import useColorScheme from './hooks/useColorScheme';
import {StyleSheet, View} from 'react-native';
import {ApplicationProvider, IconRegistry} from '@ui-kitten/components';
import {EvaIconsPack} from '@ui-kitten/eva-icons';
import {StatusBar} from 'expo-status-bar';
import SuperSpinner from './SuperSpinner';
export default () => {
const isLoadingComplete = useCachedResources();
const colorScheme = useColorScheme();
const dynamicTheme = colorScheme === 'light' ? theme.light : theme.dark;
if (!isLoadingComplete) {
return null;
}
return (
<SafeAreaProvider>
<IconRegistry icons={EvaIconsPack}/>
<ApplicationProvider {...theme} theme={dynamicTheme}>
<View style={styles.container}>
<SuperSpinner
// icon={'activity-outline'}
size={45}
/>
</View>
</ApplicationProvider>
<StatusBar/>
</SafeAreaProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#18191A' // '#222B45'
}
});