-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal Jumping height after opening if I'm closing it with pan gesture #498
Comments
Same |
Same problem here with RN 0.73.2 and React native modalize ^2.1.1 |
Same here |
Facing the same issue after upgrading to RN 0.73.2 |
Any solution? |
I had to change the package to https://github.com/gorhom/react-native-bottom-sheet |
actually it's not a random value. It's the |
It works, thank you! diff --git a/node_modules/react-native-modalize/lib/index.js b/node_modules/react-native-modalize/lib/index.js
index 5d5edac..d7c88c3 100644
--- a/node_modules/react-native-modalize/lib/index.js
+++ b/node_modules/react-native-modalize/lib/index.js
@@ -147,6 +147,7 @@ onOpen, onOpened, onClose, onClosed, onBackButtonPress, onPositionChange, onOver
setKeyboardHeight(0);
};
const handleAnimateOpen = (alwaysOpenValue, dest = 'default') => {
+ dragY.setValue(0)
const { timing, spring } = openAnimationConfig;
backButtonListenerRef.current = react_native_1.BackHandler.addEventListener('hardwareBackPress', handleBackPress);
let toValue = 0;
```diff |
@Tonisg91 did you make gorhom package to work with react native 0.74 (or 73) ? my app crash on build ( not in dev mode ) when i install reanimated. did't found a working package number with react 74 and bottomsheeet & reanimated. thanks |
When I close the modal with a swipe-down pan gesture, if I open it again, right after opening, it "jumps" height to a random value. If I close the modal programatically using
ref.current?.close()
, opening it again performs as expected.This reproduces no matter what props I use or not (
headerComponent
,adjustToContentHeight
,modalHeight
,snapPoint
). It also does not matter if I have anything inside the modal.This happens on both IOS & Android
Dependencies
The text was updated successfully, but these errors were encountered: