react-native-htmlview icon indicating copy to clipboard operation
react-native-htmlview copied to clipboard

can't set text propriety stylesheet

Open Shivani12345 opened this issue 6 years ago • 3 comments

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

Shivani12345 avatar Mar 08 '19 05:03 Shivani12345

can't change text color,size,alignments in htmlview. can't set any property related text? you can try like this ? <View style={{marginTop:15,marginBottom:18}}> <HTMLView stylesheet={style} value={introduce} /> </View> const style = StyleSheet.create({ b: { color:'#777893', fontSize: 14, paddingLeft:18, paddingRight:18, }, p: { color: '#777893', fontSize: 14, paddingLeft:18, paddingRight:18, }, });

base0225 avatar Jun 04 '19 06:06 base0225

this is ok. but if texts nested togethor ? like

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

cascade style needed .

h2soheili avatar Sep 25 '19 07:09 h2soheili

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

visormatt avatar Sep 26 '22 17:09 visormatt