-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
47 lines (41 loc) · 1.16 KB
/
App.js
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, {useEffect} from 'react';
import {SafeAreaView, Text, TouchableOpacity} from 'react-native';
import {initialize, endAppStartup} from '@embrace-io/react-native';
// To test with Codepush
// import codePush from 'react-native-code-push';
import MainNavigation from './src/navigation/MainNavigation';
const App = () => {
useEffect(() => {
initialize();
endAppStartup();
}, []);
return (
<SafeAreaView style={{flex: 1}}>
<TouchableOpacity
style={{
backgroundColor: 'rgba(44, 62, 80, 1)',
height: 100,
justifyContent: 'center',
alignItems: 'center',
}}
onPress={() => {
setTimeout(() => {}, 3000);
}}>
<Text
style={{
color: 'white',
fontSize: 30,
fontWeight: 'bold',
textAlign: 'center',
}}>
Embrace Testing Suite
</Text>
</TouchableOpacity>
<MainNavigation />
</SafeAreaView>
);
};
// To test with Codepush
// let codePushOptions = {checkFrequency: codePush.CheckFrequency.ON_APP_RESUME};
// App = codePush(codePushOptions)(App);
export default App;