-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
74 lines (67 loc) · 1.63 KB
/
Copy pathApp.js
File metadata and controls
74 lines (67 loc) · 1.63 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the UI Kitten etosha
* https://github.com/akveo/react-native-ui-kitten
*
* Documentation: https://akveo.github.io/react-native-ui-kitten/docs
*
* @format
*/
import React ,{useState} from 'react';
import { StyleSheet } from 'react-native';
import {
ApplicationProvider,
IconRegistry,
} from '@ui-kitten/components';
import { EvaIconsPack } from '@ui-kitten/eva-icons';
import * as eva from '@eva-design/eva';
import SaplashScreen from './src/SaplashScreen'
import {NavigationContainer} from '@react-navigation/native'
import RootStackNavigation from './src/Navigation/RootStackNavigation';
import Test from './src/testScree';
import { default as theme } from './Theme/custom-theme.json';
export default () => {
const [init, setInit] = useState(true)
React.useEffect(() => {
setTimeout(() => {
setInit(false)
}, 5000);
}, [])
if(init)
{
return(
<>
<IconRegistry icons={EvaIconsPack}/>
<ApplicationProvider {...eva} theme={{...eva.light,...theme}}>
<SaplashScreen />
</ApplicationProvider>
</>
)
}
return(
<>
<IconRegistry icons={EvaIconsPack}/>
<ApplicationProvider {...eva} theme={{ ...eva.light, ...theme }}
>
<NavigationContainer>
<RootStackNavigation />
{/* <Test /> */}
</NavigationContainer>
</ApplicationProvider>
</>
)};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
textAlign: 'center',
},
likeButton: {
marginVertical: 16,
},
});