forked from battle0450/Final_Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheckout.js
More file actions
98 lines (88 loc) · 1.98 KB
/
Checkout.js
File metadata and controls
98 lines (88 loc) · 1.98 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
import React, { Component, PropTypes } from 'react';
import {
View,
StyleSheet,
Text,
Image,
Picker,
Item,
TextInput,
Button,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
height: 100,
padding: 10,
backgroundColor: '#eee',
},
content_title_text:{
fontSize:20,
color:'black',
paddingLeft:3,
paddingTop:40,
},
content_comment:{
backgroundColor:'gray'
},
item:{
paddingTop:4,
backgroundColor:'#D3D3D3',
flex:0.3,
},
picker:{
justifyContent: 'center',
alignItems: 'center',
marginLeft:20,
marginRight:20,
color:'#444444',
},
button:{
borderWidth:1,
borderRadius:40,
borderColor:'green',
}
});
export default class Picker_Text extends Component {
constructor(props) {
super(props);
data=['1','2','3','4'];
this.state={
selected:"1"
}
}
renderItem(){
items=[];
for(let item of data){
items.push(<Picker.Item key={item} label={item} value={item}/>)
}
return items;
}
render() {
return (
<View style={{flex:1}}>
<View style={{backgroundColor:"white",flex:0.6}}>
</View>
<View style={{backgroundColor:"white",flex:0.2,paddingLeft:200}}>
<Text style={styles.content_title_text}>總額:</Text>
</View>
<View style={{backgroundColor:"white",flex:0.15,paddingRight:40,paddingLeft:40,paddingTop:50}}>
<Button
onPress={()=>{}}
title="確認送出"
color='#FFCC22'
style={styles.button}
/>
</View>
<View style={{backgroundColor:"white",flex:0.15,paddingRight:40,paddingLeft:40,paddingTop:10}}>
<Button
onPress={()=>{}}
title="返回選單"
color='#FF7744'
style={styles.button}
/>
</View>
</View>
);
}
}