GamerList.js 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View } from "react-native"
  3. import { unitWidth, unitHeight } from "../utils/AdapterUtil";
  4. import Ionicons from "react-native-vector-icons/Ionicons"
  5. export default class GamerList extends Component {
  6. render() {
  7. return (
  8. <View style={styles.container}>
  9. <View style={styles.gamerList}>
  10. <View style={styles.item}>
  11. <View style={styles.itemTit}>
  12. <Ionicons
  13. name={"ios-radio-button-on"}
  14. size={16}
  15. style={{ color: "#FF4A6C" }}
  16. />
  17. <Text style={{ fontSize: unitWidth * 28, color: "#fff", marginLeft: unitWidth * 20 }}>第一关</Text>
  18. </View>
  19. <Text style={{ fontSize: unitWidth * 24, color: "#fff", lineHeight: unitHeight * 30 }}>简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介</Text>
  20. </View>
  21. <View style={styles.item}>
  22. <View style={styles.itemTit}>
  23. <Ionicons
  24. name={"ios-radio-button-on"}
  25. size={16}
  26. style={{ color: "#FF4A6C" }}
  27. />
  28. <Text style={{ fontSize: unitWidth * 28, color: "#fff", marginLeft: unitWidth * 20 }}>第二关</Text>
  29. </View>
  30. <Text style={{ fontSize: unitWidth * 24, color: "#fff", lineHeight: unitHeight * 30 }}>简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介</Text>
  31. </View>
  32. <View style={styles.item}>
  33. <View style={styles.itemTit}>
  34. <Ionicons
  35. name={"ios-radio-button-on"}
  36. size={16}
  37. style={{ color: "#FF4A6C" }}
  38. />
  39. <Text style={{ fontSize: unitWidth * 28, color: "#fff", marginLeft: unitWidth * 20 }}>第三关</Text>
  40. </View>
  41. <Text style={{ fontSize: unitWidth * 24, color: "#fff", lineHeight: unitHeight * 30 }}>简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介</Text>
  42. </View>
  43. </View>
  44. </View>
  45. )
  46. }
  47. }
  48. const styles = StyleSheet.create({
  49. container: {
  50. flex: 1,
  51. // justifyContent: "center",
  52. alignItems: "center",
  53. paddingLeft: unitWidth * 25,
  54. paddingRight: unitWidth * 25,
  55. paddingTop: unitHeight * 50
  56. },
  57. gamerList: {
  58. width: "100%",
  59. },
  60. item: {
  61. width: "100%",
  62. height: unitHeight * 214,
  63. backgroundColor: "#FFB29D",
  64. borderRadius: unitHeight * 10,
  65. paddingTop: unitHeight * 37,
  66. paddingLeft: unitWidth * 20,
  67. paddingRight: unitWidth * 20,
  68. marginBottom: unitHeight * 50
  69. },
  70. itemTit: {
  71. flexDirection: "row",
  72. marginBottom: unitHeight * 40
  73. }
  74. })