Skip to content

Conversation

LuisRodriguezLD
Copy link
Contributor

@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

@rikoriswandha
Copy link

Tried this and I can confirm that this PR will fix the mentioned grid issues

@Sanchitv3 Sanchitv3 merged commit bb53e51 into gluestack:main Aug 4, 2025
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
3 participants