IdSelect.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import React, { Component } from "react"
  2. import { StyleSheet, View, Text, TextInput } from "react-native"
  3. import { unitWidth, unitHeight } from "../../utils/AdapterUtil";
  4. import AntDesign from "react-native-vector-icons/AntDesign"
  5. import RNPickerSelect from 'react-native-picker-select';
  6. export default class IdSelect extends Component {
  7. render() {
  8. // let { text } = this.props
  9. return (
  10. <View style={styles.formArea}>
  11. <View style={styles.formItem}>
  12. <View style={styles.itemArea}>
  13. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>真实姓名:</Text>
  14. <View style={styles.inputRight}>
  15. <TextInput
  16. placeholder="请输入手机号"
  17. placeholderTextColor={"#999999"}
  18. style={styles.TextInput}
  19. />
  20. </View>
  21. </View>
  22. </View>
  23. <View style={styles.formItem}>
  24. <View style={styles.itemArea}>
  25. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>身份证号:</Text>
  26. <View style={styles.inputRight}>
  27. <TextInput
  28. placeholder="请输入个人身份证号"
  29. placeholderTextColor={"#999999"}
  30. style={styles.TextInput}
  31. />
  32. </View>
  33. </View>
  34. </View>
  35. </View>
  36. )
  37. }
  38. }
  39. const styles = StyleSheet.create({
  40. formArea: {
  41. width: "100%"
  42. },
  43. formItem: {
  44. width: "100%",
  45. height: unitHeight * 72,
  46. backgroundColor: "#fff",
  47. marginBottom: unitHeight * 6,
  48. },
  49. itemArea: {
  50. width: "100%",
  51. height: "100%",
  52. flexDirection: "row",
  53. alignItems: "center",
  54. paddingLeft: unitWidth * 23,
  55. paddingRight: unitWidth * 24,
  56. borderBottomColor: "#F9F9F9",
  57. borderBottomWidth: 1
  58. },
  59. inputRight: {
  60. width: unitWidth * 566,
  61. height: "100%"
  62. },
  63. TextInput: {
  64. width: "100%",
  65. height: "100%",
  66. backgroundColor: "#F9F9F9",
  67. paddingLeft: unitWidth * 18
  68. },
  69. selectRight: {
  70. flexDirection: "row",
  71. justifyContent: "space-between",
  72. alignItems: "center",
  73. width: unitWidth * 566,
  74. height: unitHeight * 72,
  75. backgroundColor: "#F9F9F9",
  76. paddingRight: unitWidth * 18,
  77. paddingLeft: unitWidth * 18
  78. },
  79. })