register3.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View, TextInput, Image } from "react-native"
  3. import AntDesign from "react-native-vector-icons/AntDesign"
  4. import RNPickerSelect from 'react-native-picker-select';
  5. import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil";
  6. import MyButtom from '../component/MyButton'
  7. export default class Loginpage extends Component {
  8. render() {
  9. return (
  10. <View style={styles.container}>
  11. <View style={{ width: unitWidth * 310, height: unitHeight * 295 }}>
  12. <Image
  13. source={require("../../static/uploadIcon.png")}
  14. style={{ width: "100%", height: "100%", resizeMode: "stretch" }}
  15. />
  16. </View>
  17. <Text style={styles.title}>请上传您的形象照</Text>
  18. <Text style={styles.subTitle}>优质的照片,异性缘提升8.7倍</Text>
  19. <View style={styles.bottomBtn}>
  20. <MyButtom
  21. text={"下一步"}
  22. width={unitWidth * 502}
  23. height={unitHeight * 84}
  24. borderRadius={unitHeight * 84}
  25. bgColor="#FA788A"
  26. shadowBgc="rgba(250,120,138,1)"
  27. style={{ fontSize: unitWidth * 32 }}
  28. />
  29. </View>
  30. </View>
  31. )
  32. }
  33. }
  34. const styles = StyleSheet.create({
  35. container: {
  36. flex: 1,
  37. paddingTop: getStatusBarHeight() + unitHeight * 154,
  38. paddingLeft: unitWidth * 60,
  39. paddingRight: unitWidth * 60,
  40. alignItems: "center"
  41. },
  42. title:{
  43. color:"#FA788A",
  44. fontSize:unitWidth * 28,
  45. marginTop: unitHeight * 50,
  46. marginBottom:unitHeight * 30,
  47. },
  48. subTitle:{
  49. color:"#999999",
  50. fontSize:unitWidth * 28
  51. },
  52. bottomBtn: {
  53. width: "100%",
  54. marginTop: unitHeight * 405,
  55. height: unitHeight * 84,
  56. justifyContent: 'center',
  57. alignItems: 'center'
  58. }
  59. })