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

Overflow hidden not working on iOS

Open romit07 opened this issue 6 years ago • 1 comments

If i give a custom height to HTMLView in style(which is less than the content height), the view takes the given height but the content overflows outside the HTMLView. This issue is only on iOS, on android it is working fine

romit07 avatar Feb 25 '19 09:02 romit07

Try the following, works on iOS

                <HTMLView value={article.body}
                    stylesheet={bodyStyles}
                    textComponentProps={{ style: bodyStyles.p }}
                    rootComponentProps={{ maxHeight: 200, overflow: 'hidden' }} />

Yousefjb avatar Aug 04 '19 06:08 Yousefjb