-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
62 lines (54 loc) · 1.22 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
import React from 'react';
import { StyleSheet, Text, View, Image, Button, Alert } from 'react-native';
class Index extends React.Component {
render(){
return (
<View style={styles.container}>
</View>
);
}
}
class SplashScreen extends React.Component {
render() {
this.state = {isVisible: true};
let pic = {
uri: 'http://aksia.com/images/logo.png'
};
return (
<View style={styles.container}>
<Image source={pic} style={{width: 216, height: 52}}/>
<Text style={{color:'#fff', fontSize: 16, marginTop: 20}}>Latest Activities</Text>
<View style={styles.buttonContainer}>
<Button
onPress={() => {
Alert.alert('You tapped the button!');
}}
title="Proceed"
/>
</View>
</View>
);
}
}
export default class App extends React.Component {
render() {
return (
<SplashScreen/>
);
}
}
const styles = StyleSheet.create({
container: {
flex:1,
backgroundColor: '#394865',
alignItems: 'center',
justifyContent: 'center',
},
buttonContainer: {
margin: 20,
borderWidth: 2,
borderColor: '#fff',
borderRadius: 2,
backgroundColor: '#fff'
}
});