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

Display onboarding carousel as react-navigation modal #2845

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

albullington
Copy link
Collaborator

This changes the way we display the OnboardingCarousel. By using react-navigation modal, we eliminate the glitchiness in the screen transition that was present when we needed to first navigate to MyObservations, then check for whether the onboarding screen had previously been displayed, then open the modal. This conditionally displays either Onboarding or MyObservations depending on whether Onboarding has been seen before.

* Don't check for prev crashes or sentinel files on a fresh install

* Make sure we're not accidentally creating a new legacy store on every install

* Revert

* Add splash screen, preload images, show onboarding as react nav modal

* Fix e2e tests
@albullington albullington requested a review from jtklein April 9, 2025 17:28
Copy link
Collaborator

@jtklein jtklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes are okay to make now. Overall it is an improvement to the current state. While it does address the two Linear issues linked, I am not sure it is at a stage were I am comfortable with as the first impression to new users though. There is still a flash of white between the two instances of the splash screen.
Also, I think the hoisting of the OnboardingModal should have been even higher to App.js with onboardingShown either returning the onboarding modal or the app content.

@kvangork
Copy link
Contributor

kvangork commented Apr 9, 2025

@jtklein regarding your question "I am not sure it is at a stage were I am comfortable with as the first impression to new users though. There is still a flash of white between the two instances of the splash screen."
Is that a regression from the behavior before this PR? If not, I think we should proceed to merge.

@albullington
Copy link
Collaborator Author

afaik (for the reasons mentioned here) the white flash is a separate issue related to how the entire React Native bundle loads, and it wasn't something i ever figured out how to fix while working on Seek. maybe something to revisit after Earth Day.

@albullington albullington merged commit c15f8dc into release-1.0 Apr 10, 2025
11 checks passed
@albullington albullington deleted the cherry-pick/screen-transitions branch April 10, 2025 00:31
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

Successfully merging this pull request may close these issues.

3 participants