-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuyPage.js
85 lines (79 loc) · 1.94 KB
/
BuyPage.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
77
78
79
80
81
82
83
84
85
'use strict';
var BraintreePage = require('./BraintreePage');
var React = require('react-native');
var {
PickerIOS,
StyleSheet,
Image,
View,
TouchableHighlight,
ListView,
Text,
Component,
WebView
} = React;
var PickerItemIOS = PickerIOS.Item;
var styles = StyleSheet.create({
container: {
marginTop: 80,
flex: 1
},
title: {
textAlign: 'center',
fontSize: 25,
fontWeight: 'bold',
color: '#000'
},
webView: {
backgroundColor: 'rgba(255,255,255,0.8)',
height: 350,
},
button: {
height: 36,
flex: 1,
flexDirection: 'row',
backgroundColor: '#48BBEC',
borderColor: '#48BBEC',
borderWidth: 1,
borderRadius: 8,
marginBottom: 10,
alignSelf: 'stretch',
justifyContent: 'center'
},
buttonText: {
fontSize: 18,
color: 'white',
alignSelf: 'center'
},
});
class BuyPage extends Component {
moreDealsPressed() {
this.props.navigator.push({
component: BraintreePage,
});
}
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>Size</Text>
<PickerIOS>
<PickerItemIOS key="XS" value="XS" label="XS" />
<PickerItemIOS key="S" value="S" label="S" />
<PickerItemIOS key="M" value="M" label="M" />
<PickerItemIOS key="L" value="L" label="L" />
<PickerItemIOS key="XL" value="XL" label="XL" />
</PickerIOS>
<Text style={styles.title}>Color</Text>
<PickerIOS>
<PickerItemIOS key="Black" value="Black" label="Black" />
<PickerItemIOS key="White" value="White" label="White" />
<PickerItemIOS key="Grey" value="Grey" label="Grey" />
</PickerIOS>
<TouchableHighlight style={styles.button} onPress={() => this.moreDealsPressed()} underlayColor='#eeeeee' >
<Text style={styles.buttonText}>Buy now</Text>
</TouchableHighlight>
</View>
);
}
}
module.exports = BuyPage;