summaryrefslogtreecommitdiff
path: root/client/src/lib/components/text.js
blob: 17e3cb0b9273cbb34285b0f10db0809dc853c582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
  }
})