hyochan / react-native-masonry-list

The Masonry List implementation which has similar implementation as the `FlatList` in React Native
MIT License
393 stars 55 forks source link

Refresh Indicator Fails to Offset with `progressViewOffset` in `RefreshControl` #65

Open Relie9828 opened 8 months ago

Relie9828 commented 8 months ago

Describe the bug

The progressViewOffset property for the RefreshControl component is not functioning as expected. When setting an offset value, the refresh indicator does not move from its default position at the top of the view.

Reproduce

Steps to reproduce the behavior:

  1. Go to a page with a scroll view that uses RefreshControl.
  2. Set the progressViewOffset property to a numeric value, for example, 50.
  3. Perform a pull-to-refresh action on the scroll view.
  4. Observe that the refresh indicator remains at its default position and does not move down by 50 units as expected.
<RefreshControl progressViewOffset={50} />

Expected behavior

The refresh indicator should move 50 units down from its default position, aligning itself according to the progressViewOffset value set.

Smartphone:

Additional context

This issue limits the ability to create a polished and well-aligned user interface, especially when using custom headers or UI elements that need to align with the refresh indicator.