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

scroll not working with HeaderComponent on android

Open alainib opened this issue 2 years ago • 5 comments

Describe the bug

Modalize stop to scroll when i add HeaderComponent+adjustToContentHeight parameter, removing one of this parameters let it work again. it work on IOS i try with or without HOST/gestureHandlerRootHOC

is this demo i put fixed height of 800pixel but usually i don't know the height, it could be 200px or 700/800 or more so i use adjustToContentHeight

Reproduce

https://snack.expo.dev/TDZshQAV9

( sorry i cannot make it work on expo )

working without HeaderComponent ( you can see "end" text bellow at end of scrollview of 800pixels height)

https://github.com/jeremybarbet/react-native-modalize/assets/7910081/4e7c2cc0-87f9-48c3-8f1b-5821dded9554

notworking with HeaderComponent ( you cannot see "end" text bellow)

https://github.com/jeremybarbet/react-native-modalize/assets/7910081/230d8ea1-5b9a-4039-ae16-4eb83c1e052c

Dependencies:

  • "react-native-modalize": "^2.1.1"
  • "react-native": "0.71.4",
  • "react-native-gesture-handler": "^2.9.0"

alainib avatar Jun 19 '23 08:06 alainib

I'm also getting it:

"react-native-modalize": "^2.1.1" "react-native": "0.70.13", "react-native-gesture-handler": "^2.9.0"

chrisedington avatar Aug 15 '23 15:08 chrisedington

i'm also having this issue

"react-native-modalize": "2.1.1", "react-native": "0.72.3", "react-native-gesture-handler": "~2.12.0",

TakaoNarikawa avatar Jan 24 '24 23:01 TakaoNarikawa

still have this issu 1 year later after :(

adjustToContentHeight={true} on android bloc the scroll

alainib avatar Jun 11 '24 13:06 alainib

having this issue too

sebas5384 avatar Jul 22 '24 12:07 sebas5384

Same here

Felipe-OT avatar Jul 25 '24 05:07 Felipe-OT