Files
Adam Miskiewicz 9c1a6d7cf5 Run Prettier on ALL js.
fbshipit-source-id: 4471f45
2017-04-14 01:30:32 +00:00

40 lines
797 B
JavaScript

/**
* @providesModule StyledText
* @flow
*/
import React from 'react';
import { StyleSheet, Text } from 'react-native';
import { Font } from 'exponent';
export class LightText extends React.Component {
render() {
return <Text {...this.props} style={[styles.light, this.props.style]} />;
}
}
export class RegularText extends React.Component {
render() {
return <Text {...this.props} style={[styles.regular, this.props.style]} />;
}
}
export class BoldText extends React.Component {
render() {
return <Text {...this.props} style={[styles.bold, this.props.style]} />;
}
}
const styles = StyleSheet.create({
light: {
...Font.style('open-sans-light'),
},
regular: {
...Font.style('open-sans'),
},
bold: {
...Font.style('open-sans-bold'),
},
});