Created
April 18, 2020 16:30
-
-
Save renielsalvador/b5939a5e80892bf23462d4ad8a15bd62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {ReactNode} from 'react'; | |
import {StyleSheet, Text} from 'react-native'; | |
import {mapPropsToStyles} from '../utils/style_helper'; | |
import themeColors from '../../themes/variables'; | |
import {RnViewStyleProp} from 'native-base'; | |
interface Props { | |
children: ReactNode; | |
style?: RnViewStyleProp | Array<RnViewStyleProp>; | |
} | |
export default ({style, children, ...props}: Props) => ( | |
<Text style={styles.wrapper} {...props}> | |
{children} | |
</Text> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment