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.
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
- fix: measure components for adjustToContentHeight props #149 — committed to jeremybarbet/react-native-modalize by jeremybarbet 4 years ago
- fix: measure components for adjustToContentHeight props #149 — committed to jeremybarbet/react-native-modalize by jeremybarbet 4 years ago
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 โค๏ธ
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.
๐