-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
78 lines (65 loc) · 1.71 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
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
75
76
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Fragment } from 'react';
import {
SafeAreaView,
ScrollView,
View,
Text,
Button,
Image,
ImageBackground,
StatusBar,
TouchableWithoutFeedback,
} from 'react-native';
import { createStackNavigator, createAppContainer, HeaderBackButton } from 'react-navigation';
import styles from './style/styles.js'
import FillForm from './Guest/FillForm.js'
import theme from './style/theme.js'
class SplashScreen extends React.Component {
render() {
const { navigate } = this.props.navigation;
return (
<Fragment>
<StatusBar hidden={true} backgroundColor={theme.PRIMARY_COLOR} barStyle="default" />
<ImageBackground source={require('./images/b2.jpg')}
style={styles.imageBg} >
<View style={styles.alignCenter}>
<Image source={require('./images/user.png')}
style={styles.image} >
</Image>
<TouchableWithoutFeedback onPress={() => navigate('FillForm')}>
<View style={styles.btnBg}>
<Text style={styles.button}> Guest User</Text>
</View>
</TouchableWithoutFeedback>
</View>
</ImageBackground>
</Fragment>
);
}
}
const MainNavigator = createStackNavigator({
SplashScreen: {
screen: SplashScreen,
navigationOptions: {
header: null,
}
},
FillForm: {
screen: FillForm,
navigationOptions: {
header: null,
}
},
}, {
initialRouteName: 'SplashScreen',
});
const App1 = createAppContainer(MainNavigator);
export default App1;
// export default SplashScreen;