Skip to content

Commit

Permalink
fix: adjust SwipeableItem friction and improve loading indicator disp…
Browse files Browse the repository at this point in the history
…lay in Lists screen

Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jan 23, 2025
1 parent d565cb8 commit 43bebd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/src/components/common/SwipeableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const SwipeableItem: React.FC<SwipeableItemProps> = ({
renderRightActions={rightActions?.length ? renderRightActions : undefined}
overshootLeft={leftActions?.length ? leftActions?.length >= 1 : undefined}
overshootRight={rightActions?.length ? rightActions?.length >= 1 : undefined}
overshootFriction={3}
overshootFriction={10}
>
{children}
</Swipeable>
Expand Down
18 changes: 9 additions & 9 deletions apps/mobile/src/modules/settings/routes/Lists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const ListsScreen = () => {
</GroupedInsetListCard>
</View>
<View className="mt-6">
{data && (
<GroupedInsetListCard>
<GroupedInsetListCard>
{data && (
<SwipeableGroupProvider>
<Animated.FlatList
keyExtractor={keyExtractor}
Expand All @@ -69,14 +69,14 @@ export const ListsScreen = () => {
ItemSeparatorComponent={ItemSeparatorComponent}
/>
</SwipeableGroupProvider>
</GroupedInsetListCard>
)}
)}
{isLoading && (
<View className="mt-1">
<LoadingIndicator />
</View>
)}
</GroupedInsetListCard>
</View>
{isLoading && (
<View className="flex-1 items-center justify-center">
<LoadingIndicator />
</View>
)}
</SafeNavigationScrollView>
)
}
Expand Down

0 comments on commit 43bebd7

Please sign in to comment.