jsdf/react-native-htmlview

Incomplete text display when setting line height

MarxZhou opened this issue · 0 comments

When I set the line height, I found that when the property is set to 20, some text can only be displayed incomplete. It has no effect when setting other values.

This is my code:
<HTMLView
value={answerContent}
stylesheet={{
p: {
color: '#444444',
fontSize: 16,
lineHeight: 22,
},
}}
/>

Version Info:
react-native:0.59.9
react-native-htmlview:0.14.0

I tested it and found that this problem only occurs when the line height is set to 20. Setting other values and changing the font size will not be affected.

image

image