Closed skeie closed 4 years ago
Hi @skeie,
Thanks for your report.
Are you experiment the same issue even if you provide a step?
ie. start(1)
Hi @skeie,
You can now use version v2.4.0
and add startAtMount
props to TourGuideProvider
Please let me know if you still see issues.
Hi @skeie,
You can also use a new variable from hook: canStart
// Can start at mount ๐
// you need to wait until everything is registered ๐
React.useEffect(() => {
if (canStart) {
// ๐ test if you can start otherwise nothing will happen
start()
}
}, [canStart]) // ๐ don't miss it!
Hey, Your library looks great, however I stumble on a problem. I want the
tour
to start when the app is mounted, so I tried your demo app, but I changed outwith
Then
start
runs in an infinite loop. I printed out the values inwhich is:
So,
currentStep
is always null, hence it goes in an infinite loop, it might seem like there is a bug when using it onMount? :)RN version: 0.62.2 Full code