123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import React from "react"
- import { StyleSheet, Text, View } from "react-native"
- import { unitWidth, unitHeight } from "../utils/AdapterUtil";
- import RNPickerSelect from 'react-native-picker-select';
- import AntDesign from "react-native-vector-icons/AntDesign"
- import MyButtom from '../component/MyButton'
- export default class GirlFrienfTerm extends React.Component {
- render() {
- return (
- <View style={styles.container}>
- <View style={styles.formArea}>
- <View style={styles.formItem}>
- <RNPickerSelect
- placeholder={""}
- onValueChange={(value) => console.log(value)}
- items={[
- { label: 'Football', value: 'football' },
- { label: 'Baseball', value: 'baseball' },
- { label: 'Hockey', value: 'hockey' },
- ]}
- >
- <View style={styles.itemArea}>
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>年龄范围</Text>
- <AntDesign
- name={"right"}
- size={20}
- style={{ color: "#999999" }}
- />
- </View>
- </RNPickerSelect>
- </View>
- <View style={styles.formItem}>
- <RNPickerSelect
- placeholder={""}
- onValueChange={(value) => console.log(value)}
- items={[
- { label: 'Football', value: 'football' },
- { label: 'Baseball', value: 'baseball' },
- { label: 'Hockey', value: 'hockey' },
- ]}
- >
- <View style={styles.itemArea}>
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>身高范围</Text>
- <AntDesign
- name={"right"}
- size={20}
- style={{ color: "#999999" }}
- />
- </View>
- </RNPickerSelect>
- </View>
- <View style={styles.formItem}>
- <RNPickerSelect
- placeholder={""}
- onValueChange={(value) => console.log(value)}
- items={[
- { label: 'Football', value: 'football' },
- { label: 'Baseball', value: 'baseball' },
- { label: 'Hockey', value: 'hockey' },
- ]}
- >
- <View style={styles.itemArea}>
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>学历</Text>
- <AntDesign
- name={"right"}
- size={20}
- style={{ color: "#999999" }}
- />
- </View>
- </RNPickerSelect>
- </View>
- <View style={styles.formItem}>
- <RNPickerSelect
- placeholder={""}
- onValueChange={(value) => console.log(value)}
- items={[
- { label: 'Football', value: 'football' },
- { label: 'Baseball', value: 'baseball' },
- { label: 'Hockey', value: 'hockey' },
- ]}
- >
- <View style={styles.itemArea}>
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>居住地</Text>
- <AntDesign
- name={"right"}
- size={20}
- style={{ color: "#999999" }}
- />
- </View>
- </RNPickerSelect>
- </View>
- <View style={styles.formItem}>
- <RNPickerSelect
- placeholder={""}
- onValueChange={(value) => console.log(value)}
- items={[
- { label: 'Football', value: 'football' },
- { label: 'Baseball', value: 'baseball' },
- { label: 'Hockey', value: 'hockey' },
- ]}
- >
- <View style={styles.itemArea}>
- <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>年收入</Text>
- <AntDesign
- name={"right"}
- size={20}
- style={{ color: "#999999" }}
- />
- </View>
- </RNPickerSelect>
- </View>
-
- </View>
- <View style={styles.bottomBtn}>
- <MyButtom
- text={"下一步"}
- width={unitWidth * 502}
- height={unitHeight * 84}
- borderRadius={unitHeight * 84}
- bgColor="#FA788A"
- shadowBgc="rgba(250,120,138,1)"
- style={{ fontSize: unitWidth * 32 }}
- />
- </View>
- </View>
- )
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1
- },
- formArea: {
- width: "100%"
- },
- formItem: {
- width: "100%",
- height: unitHeight * 97,
- backgroundColor: "#fff",
- marginBottom: unitHeight * 6,
- },
- itemArea: {
- width: "100%",
- height: "100%",
- flexDirection: "row",
- justifyContent: "space-between",
- alignItems: "center",
- paddingLeft: unitWidth * 23,
- paddingRight: unitWidth * 24,
- borderBottomColor: "#F9F9F9",
- borderBottomWidth: 1
- },
- bottomBtn: {
- width: "100%",
- marginTop: unitHeight * 243,
- height: unitHeight * 84,
- justifyContent: 'center',
- alignItems: 'center'
- }
- })
|