-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
112 lines (107 loc) · 3.44 KB
/
App.js
File metadata and controls
112 lines (107 loc) · 3.44 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, WebView, Image} from 'react-native';
const images = {
act: require('./src/png/act.png'),
store: require('./src/png/store.png'),
search: require('./src/png/search.png'),
quest: require('./src/png/quest.png'),
manboard: require('./src/png/manboard.png'),
man: require('./src/png/man.png'),
i1: require('./src/png/i1.png'),
quiteview: require('./src/png/quiteview.png'),
social: require('./src/png/social.png'),
pstn: require('./src/png/pstn.png'),
dtitle: require('./src/png/dtitle.png'),
stark: require('./src/png/stark.png'),
}
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
android:
'Double tap R on your keyboard to reload,\n' +
'Shake or press menu button for dev menu',
});
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<WebView source={{uri: 'https://m.amap.com'}}/>
<View style={styles.head}>
<View style={{height: '100%', width: '45%', ...styles.flexCenter}}>
<Image source={images.manboard}/>
<Image source={images.man} style={{position: 'absolute', left: 10}}/>
<Text style={{position: 'absolute', left: 70, top: 40}}>123456</Text>
</View>
<View style={{
height: '100%',
width: '55%',
...styles.flexCenter
}}>
<Image source={images.act}/>
<Image source={images.store}/>
<Image source={images.search}/>
<Image source={images.quest}/>
</View>
</View>
<View style={styles.foot}>
<View style={{width:'80%',height:'100%',...styles.flexCenter}}>
<Image source={images.i1}/>
<Image source={images.quiteview}/>
<Image source={images.social}/>
</View>
</View>
<View style={styles.rightBars}>
<Image source={images.pstn}/>
<Image source={images.dtitle}/>
<Image source={images.stark}/>
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
position: 'relative'
},
flexCenter: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-around'
},
head: {
height: 80,
flexDirection: 'row',
position: 'absolute',
// backgroundColor: 'transparent'
},
foot: {
height: 100,
width: '100%',
position: 'absolute',
bottom: 20,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-around'
},
rightBars:{
height: 150,
width: 40,
position: 'absolute',
bottom: 150,
right:20,
alignItems: 'center',
justifyContent: 'space-around'
},
headImage: {
width: 100,
height: 100
}
});