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

fix: improve loading bottom sheet by using non modal version #671

Merged
merged 9 commits into from
Jan 24, 2025

Conversation

dannyhw
Copy link
Member

@dannyhw dannyhw commented Jan 24, 2025

Issue: #667

What I did

flatlist was making things slower so I tried a different approach, turns out the modal version of bottomsheet causes some lag since it has to render everything on demand.

How to test

Please explain how to test your changes and consider the following questions

  • Does this need a new example in examples/expo-example?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@dannyhw
Copy link
Member Author

dannyhw commented Jan 24, 2025

@fabioatcorreia I'm trying something different since I found that the flatlist didn't have any reasonable perf impact (i think because of complex nested items)

I found that scrollview was actually working better (with 200 generated stories)

I moved the bottom sheet from a modal style to just a regular component and made some other adjustments that seem to have a bigger impact on perf.

Can you try 8.5.2-alpha.1 and see how it is for you?

@fabioatcorreia
Copy link
Contributor

It's looking great 🚀

storybook-improvement.webm

@dannyhw dannyhw marked this pull request as ready for review January 24, 2025 11:50
@dannyhw
Copy link
Member Author

dannyhw commented Jan 24, 2025

made some optimizations for rerenders 8.5.2-alpha.3 should be smoother for changing stories etc

@dannyhw dannyhw merged commit cd3fec1 into next Jan 24, 2025
1 check passed
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.

2 participants