register3.js 2.0 KB

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