Info.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View } from "react-native"
  3. import { unitWidth, unitHeight } from "../../utils/AdapterUtil";
  4. import AntDesign from "react-native-vector-icons/AntDesign"
  5. export default class Info extends Component {
  6. render() {
  7. let { infoList } = this.props
  8. return (
  9. <View style={styles.infoArea}>
  10. <View style={styles.infoTitle}>
  11. <AntDesign
  12. name={"exclamationcircleo"}
  13. size={15}
  14. style={{ color: "#FA788A" }}
  15. />
  16. <Text style={{ color: "#333333", fontSize: unitWidth * 28, marginLeft: unitWidth * 12 }}>证明材料拍摄技巧</Text>
  17. </View>
  18. <View style={styles.infoList}>
  19. {
  20. infoList.map(item=>{
  21. return <Text style={{ color: "#666666", fontSize: unitWidth * 28, marginBottom: unitWidth * 10 }}>{item}</Text>
  22. })
  23. }
  24. </View>
  25. </View>
  26. )
  27. }
  28. }
  29. const styles = StyleSheet.create({
  30. infoArea: {
  31. width: "100%",
  32. marginTop:unitHeight * 40
  33. },
  34. infoTitle: {
  35. flexDirection: "row",
  36. paddingLeft: unitWidth * 24,
  37. alignItems: "center"
  38. },
  39. infoList: {
  40. marginTop: unitHeight * 10,
  41. marginLeft: unitWidth * 64,
  42. paddingRight:unitWidth * 24
  43. }
  44. })