Skip to content

[MOO-2266] : fix bottom sheet to avoid app crash#482

Open
SrirangK wants to merge 6 commits intomainfrom
moo/MOO-2266-bottom-sheet-fix
Open

[MOO-2266] : fix bottom sheet to avoid app crash#482
SrirangK wants to merge 6 commits intomainfrom
moo/MOO-2266-bottom-sheet-fix

Conversation

@SrirangK
Copy link
Contributor

@SrirangK SrirangK commented Mar 26, 2026

Checklist

  • Contains unit tests ❌
  • Contains breaking changes ❌
  • Compatible with: MX 8, 9, 10
  • Did you update version and changelog? ✅
  • PR title properly formatted ([XX-000]: description)? ✅
  • Works in Android ✅
  • Works in iOS ✅
  • Works in Tablet ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe)

What is the purpose of this PR?

Fix the issue in bottom sheet avoiding crash in application

Relevant changes

The crash was caused by unstable (re-created every render) function and array references being passed to @gorhom/bottom-sheet, which internally relies on reference equality for optimization. The fix stabilizes all these references using useCallback/useMemo.

@SrirangK SrirangK requested a review from a team as a code owner March 26, 2026 07:00
@SrirangK SrirangK force-pushed the moo/MOO-2266-bottom-sheet-fix branch from dced1fa to 22fd283 Compare March 26, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants