react-native-modalize: ScrollView doesn't work with adjustToContentHeight

If you use adjustToContentHeight but the content is taller than the screen, the scrollView should work.

2020-03-18 17 07 45

At the moment, I have to turn off adjustToContentHeight on certain modals that I think will be tall enough. But weโ€™ll have more dynamic content in some modals, so I wonโ€™t know.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I got the same bug. I need to set disableScrollIfPossible={false} to work the scroll here.

Good catch! Usage of XComponent was the culprit. It should be fixed now, I will release asap.

About the async function that loads data before showing up should be on a new separated issue

Edit: Released in 2.0.0

2.0.0 works ๐ŸŽ‰ thanks โค๏ธ

Are you testing on Android? I Got the error on Android, on iOS its ok.

Reported here: #219

One more issue I am facing is that when I load my component. If the content is more than the height, then it first automatically scroll up and then to the snap point where I have adjusted it to be on certain position

Yeaaa, worked perfectly! @jeremybarbet you are awesome ! โค๏ธ

About the async function, forget that, its working here ๐Ÿ˜„ On my example it already was with the method that I said ๐Ÿ˜ƒ

@jeremybarbet I Found out the problem

https://snack.expo.io/@bookplay/react-native-modalize-bug-height

The HeaderComponent is bugging the Modal on this situation.

Try on snack, with header its going to bug the scroll. If you remove the header, its going to work perfectly.

๐Ÿ˜•