You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the origin of this issue comes somewhere from the native-base/src/components/composites/Transitions/Slide.tsx or one of its dependencies, as this only occurs when a Modal has a slide transition (as an Actionsheet does by default on an Android device). Disabling the slide animation resolves the issue. I'll admit it's possible this bug comes from a library used by native base, but this seems like a good start to discover the source of the issue and at the very least it documents a work around.
The below video shows the issue as presented from steps 1 and 2, followed by steps 3 and 4 after the hot-reload that disables the slide animation.
ScreenRecord-2023-04-25-09-50-16.mp4
The text was updated successfully, but these errors were encountered:
See the above mentioned issue. I don't think this is a NativeBase issue, but a react-native fabric issue. Closing until I find out one way or the other.
Description
Actionsheet (or a modal containing a slide transition) suppresses callbacks for children when using the slide animation.
CodeSandbox/Snack link
https://codesandbox.io/s/delicate-sound-6dodwc?file=/src/components/Example.tsx
Steps to reproduce
onPress
callback. Let's say it's a button.Note how, despite the button visually reacting to the press, the button's callback does not run.
animationPreset="none"
to the Actionsheet's propsNote how the button's callback now runs.
NativeBase Version
3.3.1
Platform
Other Platform
Pixel 7 - Android 13, LGV30 - Android 10, Pixel 3 - Android 12.
Additional Information
We're using the new architecture.
I believe the origin of this issue comes somewhere from the native-base/src/components/composites/Transitions/Slide.tsx or one of its dependencies, as this only occurs when a Modal has a slide transition (as an Actionsheet does by default on an Android device). Disabling the slide animation resolves the issue. I'll admit it's possible this bug comes from a library used by native base, but this seems like a good start to discover the source of the issue and at the very least it documents a work around.
The below video shows the issue as presented from steps 1 and 2, followed by steps 3 and 4 after the hot-reload that disables the slide animation.
ScreenRecord-2023-04-25-09-50-16.mp4
The text was updated successfully, but these errors were encountered: