Skip to content

SwipeRow : Unable to close row programatically. #618

@yubarajoli77

Description

@yubarajoli77

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions