fix: adjust SwipeableItem friction and improve loading indicator display in Lists screen
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
d565cb80c5
commit
43bebd7c41
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ export const ListsScreen = () => {
|
|||
</GroupedInsetListCard>
|
||||
</View>
|
||||
<View className="mt-6">
|
||||
{data && (
|
||||
<GroupedInsetListCard>
|
||||
<GroupedInsetListCard>
|
||||
{data && (
|
||||
<SwipeableGroupProvider>
|
||||
<Animated.FlatList
|
||||
keyExtractor={keyExtractor}
|
||||
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue