Skip to content

Commit

Permalink
fix(tokens): ensure header component is above scrollbar on overscroll (
Browse files Browse the repository at this point in the history
  • Loading branch information
kathaypacific authored May 25, 2023
1 parent b4f0b00 commit c81d853
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tokens/TokenBalances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ function TokenBalancesScreen({ navigation, route }: Props) {
<AnimatedSectionList
contentContainerStyle={{
paddingBottom: insets.bottom,
opacity: listHeaderHeight > 0 ? 1 : 0,
}}
// Workaround iOS setting an incorrect automatic inset at the top
scrollIndicatorInsets={{ top: 0.01 }}
// ensure header is above the scrollbar on ios overscroll
scrollIndicatorInsets={{ top: listHeaderHeight }}
// @ts-ignore can't get the SectionList to accept a union type :(
sections={sections}
renderItem={renderAssetItem}
Expand Down

0 comments on commit c81d853

Please sign in to comment.