blob: 14641a05e16aa0659d5e36f328256e8d89e0058f (
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", sans-serif',
textAlign: 'center',
fontSize: 16,
lineHeight: 30,
}
})
|