Skip to content

Swipable Row

Vito Chen edited this page Apr 2, 2017 · 1 revision

Swipeable Tip:

If you want to use swipeable row in this listview, I highly recommend you to use react-native-swipeout. To use it, simply put it into the renderRowView() method and wrap your own <View/> into <Swipeout/> component.

import Swipeout from "react-native-swipeout"
import {Text, View} from "react-native";

const swipeoutBtns = [
  {
    text: 'Button'
  }
]

<Swipeout right={swipeoutBtns}>
  <View>
    <Text>Swipe me</Text>
  </View>
</Swipeout>
Clone this wiki locally