Skip to content

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

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

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

Conversation

@SrirangK
Copy link
Copy Markdown
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like bottom padding is somehow ignored/not added in new screenshot. Can you check if there is/was any code snippet related to status bar height or safe area padding?

- extendedWaitUntil:
visible: randText
optional: true
timeout: 50000
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Huge jump from 10 seconds to 50 check why it is taking additional time to appear

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.

3 participants