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

The back gesture/button on Android devices closes the walkthrough. #331

Open
web-copilot opened this issue Nov 8, 2024 · 2 comments
Open

Comments

@web-copilot
Copy link

web-copilot commented Nov 8, 2024

Current Behavior

When using react-native-copilot to integrate a walkthrough on a specific screen in my application, I encountered an issue: if the user presses the back button on Android while the walkthrough is active, the walkthrough closes unexpectedly, and no events from copilotEvents are registered to handle this action.

This is encountered only in android and no such issues are there in iOS.

Expected behavior/code
I want to disable this behaviour, where on back gesture or on back button click in android, the walkthrough quits.

Environment

  • Device: Pixel 6
  • OS: 14
  • react-native-copilot: 3.3.2
  • react-native: 0.72.6
  • react-native-svg: 13.14.0
    Additional context/Screenshots
    Attaching screen recording for ref:
IMG_0413.MOV
@ankurmalik491
Copy link

ankurmalik491 commented Nov 8, 2024

Yes this appears to me as well
please provide any solution

even tried with onRequestclose and onDismiss method of react native model used internally by your package,
but seems to not working

please provide a solution.
thanks

@Pawansk214
Copy link

Similar case for me. The walkthrough modal is getting closed on back press in Android.

Is there any callback or listener which gets the back press event which can be used to change this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants