summaryrefslogtreecommitdiff
path: root/client/src/lib/components/text.js
diff options
context:
space:
mode:
authorjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
committerjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
commit5f26431f03228a85273e7f7d51abd6098ea9f2a5 (patch)
tree6a709972cbb0babd68aaa10fe277b2c843fd7451 /client/src/lib/components/text.js
parent291fe3eedd9a460fc44d2ea3ea81c7d79f2dfbcf (diff)
parentdd70fa81a205304cb48bbc0494ad34c16d496ff2 (diff)
merge
Diffstat (limited to 'client/src/lib/components/text.js')
-rw-r--r--client/src/lib/components/text.js30
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,
+ }
+})