diff options
Diffstat (limited to 'client/src/lib/components/text.js')
| -rw-r--r-- | client/src/lib/components/text.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/lib/components/text.js b/client/src/lib/components/text.js new file mode 100644 index 0000000..17e3cb0 --- /dev/null +++ b/client/src/lib/components/text.js @@ -0,0 +1,30 @@ +import React, { Component } from 'react'; +import { + StyleSheet, + Text +} from 'react-native'; + +export default class ClearText extends Component { + render() { + let { style, ...others } = this.props + if (style) { + style = [ styles.text, style ] + } + else { + style = styles.text + } + return ( + <Text style={style} children={this.props.children} {...others} /> + ) + } +} + +const styles = StyleSheet.create({ + text: { + color: '#ffffff', + fontFamily: 'Futura-Medium', + textAlign: 'center', + fontSize: 16, + lineHeight: 30, + } +}) |
