Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[C-1236] Ensures refresh spinner does not float over content (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Oct 4, 2022
1 parent 8e2dedd commit a368792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/mobile/src/components/core/FlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const AnimatedFlatList = forwardRef<RNFlatList, FlatListProps>(
onRefresh={handleRefresh}
scrollAnim={scrollAnim}
isRefreshDisabled={isRefreshDisabled}
yOffsetDisappearance={-16}
/>
) : null}
<Animated.FlatList
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/components/core/PullToRefresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const interpolateTranslateY = (scrollAnim: Animated.Value) =>

const interpolateHitTopOpacity = (scrollAnim: Animated.Value, scrollDistance) =>
scrollAnim.interpolate({
inputRange: [-60, scrollDistance, scrollDistance + 20],
inputRange: [-60, scrollDistance, scrollDistance + 12],
outputRange: [1, 1, 0],
extrapolateRight: 'clamp'
})
Expand Down

0 comments on commit a368792

Please sign in to comment.