UNPKG

generator-rn-toolbox

Version:

React-Native generators to kickstart your project

34 lines (28 loc) 643 B
// @flow import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import theme from 'theme'; import Button from './Button'; import type { Props } from './Button'; class SecondaryFlatButton extends Component<void, Props, void> { render() { return ( <Button style={styles.button} textStyle={styles.textStyle} borderless useForeground {...this.props} /> ); } } const styles = StyleSheet.create({ button: { backgroundColor: 'transparent', }, textStyle: { ...theme.fonts.secondaryFlatButton, }, }); export default SecondaryFlatButton;