jsdf / react-native-htmlview

A React Native component which renders HTML content as native views
ISC License
2.71k stars 467 forks source link

can't set text propriety stylesheet #252

Open Shivani12345 opened 5 years ago

Shivani12345 commented 5 years ago

can't change text color,size,alignments in htmlview. can't set any property related text?

base0225 commented 5 years ago

can't change text color,size,alignments in htmlview. can't set any property related text? you can try like this ?

const style = StyleSheet.create({ b: { color:'#777893', fontSize: 14, paddingLeft:18, paddingRight:18, }, p: { color: '#777893', fontSize: 14, paddingLeft:18, paddingRight:18, }, });

h2soheili commented 5 years ago

this is ok. but if texts nested togethor ? like

<h3>Tile Is<b>Bold and <i>Italic </i></b>

cascade style needed .

visormatt commented 2 years ago

The ability to link a CSS file here, which sits in the html head might make the customization much more flexible 🤔