-
I can use custom font family but it should always override it via styles is there a more practical way? import { StyleSheet, View } from 'react-native'
import { Typography } from '@kujang/uniui'
const DemoScreen = () => {
return (
<View style={{ flex: 1 }}>
<Typography style={styles.text}>Lorem Ipsum</Typography>
</View>
)
}
const styles = StyleSheet.create({
text: {
fontFamily: 'Plus Jakarta Sans',
fontSize: 22,
lineHeight: 30,
fontWeight: '600',
},
})
export default DemoScreen
|
Beta Was this translation helpful? Give feedback.
Answered by
hiriski
Jul 31, 2024
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hey6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use a custom font family you can create your own theme configuration that extends from the default theme, you can also use different font types for each variant