Skip to content

fix(gallery-native): enable pull to refresh when gallery is empty - #737

Open
stelselim wants to merge 1 commit into
mx/11.12.xfrom
fix/gallery-native-empty-pull-to-refresh-11.12
Open

stelselim wants to merge 1 commit into
mx/11.12.xfrom
fix/gallery-native-empty-pull-to-refresh-11.12

Conversation

@stelselim

Copy link
Copy Markdown
Contributor

When the gallery had no items, only the empty placeholder was rendered in a plain View and FlashList (which owns the refresh control) was not mounted, so pull to refresh could not be triggered. Wrap the placeholder in a ScrollView with a RefreshControl for vertical galleries with a pull down action.

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 ✅ ❌

Feature specific

  • Comply with designs ✅ ❌
  • Comply with PM's requirements ✅ ❌

Please remove unnecessary emojis and sections and this comment before proceeding

This PR contains

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

What is the purpose of this PR?

...

Relevant changes

Please add a high level explanation of what was changed and how the initial problem was solved

What should be covered while testing?

...

Extra comments (optional)

Please add extra comments or delete the section if not required

When the gallery had no items, only the empty placeholder was rendered in a
plain View and FlashList (which owns the refresh control) was not mounted,
so pull to refresh could not be triggered. Wrap the placeholder in a
ScrollView with a RefreshControl for vertical galleries with a pull down
action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stelselim
stelselim requested a review from a team as a code owner November 25, 2026 12:28
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