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

Bring up tour only on the first run of the app #52

Open
Adarsh1993 opened this issue Mar 18, 2022 · 2 comments
Open

Bring up tour only on the first run of the app #52

Adarsh1993 opened this issue Mar 18, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Adarsh1993
Copy link

Thanks for great package .

How to hints show in first time when app is start .

second time disable . This is possible with spotlight tour.

Thank you

@JoseLion
Copy link
Member

Hi @Adarsh1993, I'm glad you're finding this package useful 🙂

It's possible to start the tour as soon as the app begins using a ref and a useEffect(..). We had a suggestion about making this easier in #50, and we'll be implementing a prop for that soon. You can also find a complete example of it in that issue.

There's no built-in feature to start the tour only the first time, but you can add that logic yourself in the useEffect mentioned above. You can use a package like async-storage to store a per-device flag. Then you can start the tour base on this flag and update the flag once the tour has finished.

This could be a great feature for us to implement since most people might be using the tour this way, and we could reduce the burden of managing the stored flags. However, we'd have to evaluate the details because that'd mean adding a dependency on async-storage or a similar package.

I'll leave this ticket open to keep you posted on the topic. Thanks again! Your feedback helps us make this package better and better 🙂

@JoseLion JoseLion added the enhancement New feature or request label Mar 22, 2022
@JoseLion JoseLion changed the title spotlight tour Bring up tour only on the first run of the app Mar 22, 2022
@mohamedabkal
Copy link

@JoseLion Yes please this feature is very important. If you can add it it would amazing! 💪

@JoseLion JoseLion added the help wanted Extra attention is needed label Aug 12, 2022
@krarrobo1 krarrobo1 self-assigned this Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants