Created
November 13, 2020 15:36
-
-
Save jaysoo/1acffcf3af52a1f2ef28ab97b4ea1263 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 * as React from 'react'; | |
import { StyleSheet, View, Text } from 'react-native'; | |
export interface UiHeadingProps { | |
text: string; | |
} | |
export const UiHeading = (props: UiHeadingProps) => { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.text}>{props.text}</Text> | |
</View> | |
); | |
}; | |
const styles = StyleSheet.create({ | |
container: { paddingTop: 5, paddingBottom: 10 }, | |
text: { fontSize: 24, fontWeight: '500', color: '#45bc98' }, | |
}); | |
export default UiHeading; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment