transitionStart is never reported for presentation modes other than the default. When switching to modal or transparentModal, it only reports transitionEnd. When closing the modal, it reports both transitionStart and transitionEnd.
If the target is pushed normally, it works correctly. This bug occurs only on iOS, not on Android. Open the snack with iOS and check the logs. I have added two buttons, both pushing to the same screen. Only the default one triggers both start and end, while the modal one only emits the end.
Steps to reproduce
Open my Snack and watch the console while testing both buttons.
transitionStart and transitionEnd should work for every presentation mode.
Here is a video showcasing everything:
Description
transitionStart
is never reported forpresentation
modes other than the default. When switching tomodal
ortransparentModal
, it only reportstransitionEnd
. When closing the modal, it reports bothtransitionStart
andtransitionEnd
.If the target is pushed normally, it works correctly. This bug occurs only on iOS, not on Android. Open the snack with iOS and check the logs. I have added two buttons, both pushing to the same screen. Only the default one triggers both start and end, while the modal one only emits the end.
Steps to reproduce
Open my Snack and watch the console while testing both buttons.
transitionStart and transitionEnd should work for every presentation mode. Here is a video showcasing everything:
https://github.com/software-mansion/react-native-screens/assets/504909/6f05d06e-89a9-4ace-838a-ee69206d3d09
Snack or a link to a repository
https://snack.expo.dev/@hirbod/react-navigation-transition-event-bug?platform=ios
Screens version
3.21.0
React Native version
0.74.2
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
None
Device
Real device
Device model
All iOS devices
Acknowledgements
Yes