react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

React-Navigation - tour on multiple screens

Open abo-rythm opened this issue 2 years ago • 7 comments

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

abo-rythm avatar Sep 14 '23 05:09 abo-rythm

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

quicksilverr avatar Nov 27 '23 07:11 quicksilverr

@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.

amit13091992 avatar Jan 05 '24 08:01 amit13091992