Skip to content
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

Doesn't navigate on shake if screen is modal #1897

Closed
nazmeln opened this issue Sep 20, 2023 · 1 comment
Closed

Doesn't navigate on shake if screen is modal #1897

nazmeln opened this issue Sep 20, 2023 · 1 comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@nazmeln
Copy link

nazmeln commented Sep 20, 2023

Description

Hey,
I am working on showing a modal screen triggered by the Shake Event using react-native-shake package. It's working well, but there's an issue with presentation: 'transparentModal' or any other modal variations. However, if the presentation: 'card' or navigation stack is NOT native, everything works as expected. Please check the videos in README.md.

Thanks in advance!

Steps to reproduce

  1. Create a Native Stack Navigator with 2 screens, one of them is a modal
  2. Add react native shake lib
  3. Track Shake event and try to navigate to the modal using navigationRef.navigate or navigationRef.push
  4. Launch the app on the iOS emulator
  5. In the top tab > Device > Shake (Control + Command + Z)

Snack or a link to a repository

repo

Screens version

3.22.1

React Native version

0.72.3

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Missing repro This issue need minimum repro scenario Missing info The user didn't precise the problem enough Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided and removed Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario labels Sep 20, 2023
@nazmeln
Copy link
Author

nazmeln commented Sep 21, 2023

Update: it was related to the debug mode and DevMenu was also opening at the same time and as it's known we cannot open two modals at the same time.

@nazmeln nazmeln closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

1 participant