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

React-Navigation - tour on multiple screens #301

Open
abo-rythm opened this issue Sep 14, 2023 · 2 comments
Open

React-Navigation - tour on multiple screens #301

abo-rythm opened this issue Sep 14, 2023 · 2 comments

Comments

@abo-rythm
Copy link

Current Behavior
Have steps on different react-navigation screens

  1. One step on first screen, it shows only the "Finish" button, as there are no other steps
  2. Next steps on other screen, shows the walkthroughable from the previous screen in the same position, which does not make sense, then the next step on the corresponding walkthroughable component on the current screen

Expected behavior/code
Steps to be remembered on different react-navigation screens

Environment

  • Device: [e.g. iPhone 14 Simulator]
  • OS: [e.g. iOS16]
  • react-native-copilot: 3.2.1
  • react-native: 0.72.4

Possible Solution

Additional context/Screenshots
Screenshot 2023-09-14 at 08 26 41
Screenshot 2023-09-14 at 08 31 29
Screenshot 2023-09-14 at 08 31 36

@quicksilverr
Copy link

@mohebifar Do we need to wrap the navigation container with the CopilotProvider?

@amit13091992
Copy link

@abo-rythm @quicksilverr

If you want to use it in multiple screens then you can wrap main navigator with CopilotProvider and whichever element you want to use based on your requirements you can set the order.

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