native-html / plugins

Plugins for react-native-render-html
MIT License
55 stars 18 forks source link

Is it possible to disable scrolling within HTML component instead use scroll of parent scrollview #19

Closed msuma268 closed 4 years ago

msuma268 commented 4 years ago

I used this library as shown in the example and was able to render HTMLs with table tags as expected. However, if HTML is wrapped with Scrollview then there are 2 scrolls shown on the UI (one for parent Scrollview and the other for the Webview).

Is it possible to hide scroll of Webview and instead use Scroll of parent view i.e, ScrollView?

jsamr commented 4 years ago

@msuma268 Good question, that could be added in a FAQ. Can you share a small reproduction with a snack? That will help me help you :-)

jsamr commented 4 years ago

@msuma268 I suggest you disable horizontal scrolling from the parent ScrollView with horizontal: false prop. Closing now! Don't hesitate to reply if you have any question regarding this issue.