-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathSimpleExample1.js
51 lines (49 loc) · 1.1 KB
/
SimpleExample1.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
Alert,
Image,
} from 'react-native';
import Egg from 'react-native-egg';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
paddingBottom: 200,
},
avatarImage: {
borderRadius: 60,
width: 120,
height: 120,
flexDirection: 'row',
marginBottom: 30,
},
text: {
fontSize: 18,
fontWeight: '700',
},
});
export default class SimpleExample1 extends Component {
render() {
return (
<Egg style={styles.container}
setps={'TTT'}
onCatch={() => {
Alert.alert('Version', '1.0.1');
}}
>
<Image source={{ uri: 'https://avatars2.githubusercontent.com/u/6357215?v=3&s=460' }} style={styles.avatarImage} />
<Text style={styles.text}>FuYaoDe</Text>
<Text>dan82625@gmail.com</Text>
<Text style={{marginTop: 10}}>Try tap screen * 3</Text>
</Egg>
);
}
}