-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Description
Here is my implementation. I am using this SwipeRow only (Standalone without SwipeListView).
<SwipeRow
disableRightSwipe
onRowPress={onPress}
onRowOpen={onRowOpen}
useNativeDriver
rightOpenValue={-160}>
<BackView
isCompleted={Boolean(status.isDone)}
isProcessing={processing}
/>
{children}
</SwipeRow>
const onRowOpen = async (toValue: number) => {
setProcessing(true);
if (status.isDone) {
await unmark();
} else {
await mark();
}
setProcessing(false);
};
Now I just want to close the Row automatically after successful execution of "mark" or "unmark" async function. How can I close that opened row programmatically?
You can see the screen recording below. I have to close it manually by swiping right.
Swipe.mov
Metadata
Metadata
Assignees
Labels
No labels