Skip to content

Instantly share code, notes, and snippets.

@jaysoo
Created November 13, 2020 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaysoo/1acffcf3af52a1f2ef28ab97b4ea1263 to your computer and use it in GitHub Desktop.
Save jaysoo/1acffcf3af52a1f2ef28ab97b4ea1263 to your computer and use it in GitHub Desktop.
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