tax_message.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import React, {Component} from 'react';
  2. import {Image, Text, View, TouchableOpacity, StyleSheet} from 'react-native';
  3. import public_css from '../../source/css/public_css';
  4. export default class tax_message extends Component {
  5. constructor(props) {
  6. super(props);
  7. this.props.navigation.dangerouslyGetParent().setOptions({
  8. tabBarVisible: false,
  9. });
  10. this.state = {
  11. title: this.props.route.params.message.msgTitle,
  12. date: this.props.route.params.message.createTime,
  13. message: this.props.route.params.message.msgBrief,
  14. };
  15. }
  16. render() {
  17. return (
  18. <View style={public_css.body}>
  19. <View
  20. style={{
  21. margin: 5,
  22. alignItems: 'center',
  23. }}>
  24. <Text
  25. style={{
  26. fontSize: 18,
  27. fontFamily: 'PingFang-SC-Regular',
  28. color: '#333333',
  29. }}>
  30. {this.state.title}
  31. </Text>
  32. <Text
  33. style={{
  34. fontSize: 18,
  35. fontFamily: 'PingFang-SC-Regular',
  36. color: '#333333',
  37. }}>
  38. {this.state.date}
  39. </Text>
  40. </View>
  41. <View style={{margin: 5}}>
  42. <Text>{this.state.message}</Text>
  43. </View>
  44. </View>
  45. );
  46. }
  47. }