-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Passing tourKey to useTourGuideController returns undefined eventEmitter #141
Comments
My issues was cannot click on the next even on second screen i got the tourkey |
same issue here, i fixed it by pass the eventEmitter into useEffect's dependency like this
}, [eventEmitter]);` |
@nicencina @RuFang-21 Did you manage to fix it ? I'm unable to move to the next stage when I do what @nhanptse05568 mentioned |
@mritul I just got around it by passing a It looks like:
In my |
Seems convincing @nicencina. I'll give it a shot. Thank you for taking the time ! |
All of the documentation that I have read indicates that multiple tours across different tabs should work as:
however when I pass a unique_tour_key to
useTourGuideController
it returns an undefinedeventEmitter
. CallingeventEmitter
then returns an error cannot read property 'on' undefined. (TheeventEmitter
is perfectly valid if I do not pass a unique_tour_key, btw)I can get past this on subsequent tabs/tours by pulling the
TourGuideZone
from the hook (using a unique_tour_key) and using thatTourGuideZone
to invoke a tab-specific tour, but then I don't have access to aneventEmitter
, which I need in order to set page-specific handlers (like setting a flag to not show this tour again after onboarding).I can get past this outside of the rn-tourguide by setting the do-not-show-again flag within the
useEffect
method, such as:but I thought that I'd check to see if I could use the component as specified in the documentation first before working my way around it (also, I can't be sure that the user actually saw the whole tour). Is anyone else experiencing issues when passing in a unique_tour_key?
The text was updated successfully, but these errors were encountered: