register3.js 2.1 KB

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