React Native Font System Code Usage
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
// MyCustomScreen.js | |
import { TouchableOpacity } from 'react-native'; | |
import Text from '..(relative_path)/components/Text'; | |
const MyCustomScreen = () => ( | |
<> | |
<Text as="H1">This is the main title</Text> | |
<Text as="H2">This a secondary title</Text> | |
<Text>This a normal paragraph</Text> | |
<TouchableOpacity onPress={() => {}}> | |
<Text as="H3" style={{ color: 'red'}}>Press Me!</Text> | |
</TouchableOpacity> | |
</> | |
); | |
export default MyCustomScreen; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment