No Description

info.js 685B

12345678910111213141516171819202122232425262728293031323334
  1. // @flow
  2. import React, {Component} from 'react';
  3. import {
  4. AppRegistry,
  5. StyleSheet,
  6. Text,
  7. View,
  8. } from 'react-native';
  9. export default class Info extends Component {
  10. props : {
  11. description : string,
  12. }
  13. render() {
  14. return (
  15. <View style={{
  16. borderTopWidth :1 ,
  17. alignItems : 'center',
  18. borderTopColor : '#DDD'
  19. }}>
  20. <View style={{ alignSelf : 'stretch'}}>
  21. <Text style={{color : '#777', alignSelf : 'stretch', textAlign : 'center', margin : 8}}>
  22. {this.props.description}
  23. </Text>
  24. </View>
  25. <View style={{alignSelf : 'stretch'}}>{this.props.children}</View>
  26. </View>
  27. )
  28. }
  29. }