From 3e72bfa56c860826429a842f6c128d78d4a930db Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 1 Jun 2017 19:47:08 -0400 Subject: react-native-web port of fmf app --- client/src/lib/components/text.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 client/src/lib/components/text.js (limited to 'client/src/lib/components/text.js') 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 ( + + ) + } +} + +const styles = StyleSheet.create({ + text: { + color: '#ffffff', + fontFamily: 'Futura-Medium', + textAlign: 'center', + fontSize: 16, + lineHeight: 30, + } +}) -- cgit v1.2.3-70-g09d2