UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

18 lines (16 loc) 308 B
const baseStyle = (props: Record<string, any>) => { const { isUnderlined } = props; return { _text: { textDecorationLine: isUnderlined ? 'underline' : 'none', }, width: 'auto', height: 'auto', }; }; export default { baseStyle, defaultProps: { isUnderlined: true, }, };