react-native-navigation
react-native-navigation copied to clipboard
Can not push a screen after dismiss an overlay
🐛 Bug Report
Can not push a screen after dismiss an overlay
Have you read the Contributing Guidelines on issues?
(Write your answer here.)
To Reproduce
(Write your steps here:)
- Show an overlay using below code: Navigation.showOverlay({ component: { name: modalName, options: { overlay: { interceptTouchOutside: true, handleKeyboardEvents: true, }, layout: { componentBackgroundColor: COLORS.transparent, }, }, passProps, }, });
- Dismiss overlay
- Push to a screen using Navigation.push(componentId, {.....})
- It shows Running "Profile" with {"rootTag":661,"initialProps":{"componentId":"Component14"}} but not push to this screen on the UI as my expectation.
Expected behavior
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screenshots, if applicable.)
Your Environment
- React Native Navigation version: 7.28.0
- React Native version: 0.68.2
- Platform(s) (iOS, Android, or both?): both ios and android
- Device info (Simulator/Device? OS version? Debug/Release?): FILL THIS OUT
Reproducible Demo
(Paste the link to an example repo and exact instructions to reproduce the issue.)
Are you willing to resolve this issue by submitting a Pull Request?
- ✅ Yes, I have the time, and I know how to start.
- ✖️ Yes, I have the time, but I don't know how to start. I would need guidance.
- ✖️ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
Hey @suupham2506, can you reproduce this issue in with the playground app https://wix.github.io/react-native-navigation/docs/playground-app/?
I use react native modalize. You can see example here. https://github.com/jeremybarbet/react-native-modalize/tree/master/examples/react-native-navigation
Not sure the bug from react native modalize or react native navigation, but hopefully you can help me investigate and solve this issue.
hey @Andarius, do you think this issue should be solved by react-native navigation?
I have a similar issue, when you display an overlay, the componentId change but when you dismiss it, you don't have a new componentId.
Navigation.events().registerComponentDidAppearListener((event) => {
console.log('currentComponentId', event.componentId);
}
This is definitely a react-native navigation issue, I don't use modalize and still have this issue. @Andarius is it ever going to be fixed ?
I have the samedescribed issue with react-native-navigation 7.29.0 and react-native 0.70.8
i have had also this issue with react-native-navigation 7.7.0. Is this bug going to be fixed ?
I am also experiencing this issue, react-native-navigation 7.32.2, react native 0.71