Skip to content

Instantly share code, notes, and snippets.

@renielsalvador
Created April 18, 2020 16:30
Show Gist options
  • Save renielsalvador/b5939a5e80892bf23462d4ad8a15bd62 to your computer and use it in GitHub Desktop.
Save renielsalvador/b5939a5e80892bf23462d4ad8a15bd62 to your computer and use it in GitHub Desktop.
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