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

Can't scroll with adjustToContentHeight (android 10)

Open alexoates opened this issue 2 years ago • 2 comments

Edit I have narrowed this down to using Modalize with withHandle set to false. Enabling this prop fixes the issue.

Describe the bug When adding the adjustToContentHeightprop when the content exceeds the height of the viewport, I'm unable to scroll the ScrollView. Despite the scroll indicator being visible.

This only seems to happen on Android 10. Tested on Android 12 and it appears to work.

Reproduce Basic implementation of Modalize inside a <Portal>, with adjustToContentHeightprop enabled. Add lots of content, enough to exceed viewport height.

Dependencies:

  • react-native-modalize [2.1.1]
  • react-native [0.68.5]
  • react-native-gesture-handler [2.9.0]

alexoates avatar Mar 07 '23 10:03 alexoates

i have the same probleme on android , but cannot scroll in a scrollView inside a modalize no matter what i try to do. any code to test it please ?

alainib avatar Jun 16 '23 12:06 alainib

Just add prop "disableScrollIfPossible={false}" and it worked for me

nduyvu1511 avatar Jun 15 '24 03:06 nduyvu1511