Skip to content

Refactor GridItem flexBasisValue calculation logic #2821

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LuisRodriguezLD
Copy link

@LuisRodriguezLD LuisRodriguezLD commented May 1, 2025

The current logic that determines the flexBasis uses state but this was causing issues for me a lot of other users, this PR leverages useMemo to cache the flexBasis

useEffect runs after mount & memo is computed before mounting

Closes #2794 #2782

Before After
Screenshot 2025-05-01 at 7 43 00 AM Screenshot 2025-05-01 at 7 43 39 AM

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.

Grid does not work properly in react native expo
1 participant