Skip to content

Instantly share code, notes, and snippets.

@Cst2989
Created January 23, 2022 11:09
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 Cst2989/39fba532d187b1c2875c8f2f64ff5088 to your computer and use it in GitHub Desktop.
Save Cst2989/39fba532d187b1c2875c8f2f64ff5088 to your computer and use it in GitHub Desktop.
const { width } = useWindowDimensions();
const systemFonts = ['Lato_400Regular'];
return (
<SafeAreaView style={styles.container}>
<ScrollView style={styles.scrollView}>
<RenderHtml
source={{ html: props.html }}
systemFonts={systemFonts}
tagsStyles={tagsStyles}
contentWidth={width}
/>
</ScrollView>
</SafeAreaView>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment