rn-swipeout-nyc

0.0.8 • Public • Published

rn-swipeout-nyc

npm install rn-swipeout-nyc

import Swipeout from 'rn-swipeout-nyc'
<Swipeout
  distance={100}
  onOpen={() => console.log('open')}
  onClose={() => console.log('close')}
  actionBtn={
    <Button onPress={() => this.addTodo()} title="删除" color="#999" />
  }
  isSwipeout={true}
  style={styles.testTouch}>
  <Text>你好!</Text>
</Swipeout>
属性 默认值 是否必填 描述
distance 80 向左滑开最大距离
actionBtn undefined 滑动开后看到的内容
isSwipeout true 是否可以打开
事件 默认值 是否必填 描述
onOpen undefined 滑动开始回掉事件
onClose undefined 滑动关闭回掉事件

Readme

Keywords

Package Sidebar

Install

npm i rn-swipeout-nyc

Weekly Downloads

0

Version

0.0.8

License

ISC

Unpacked Size

6.42 kB

Total Files

5

Last publish

Collaborators

  • nanyanchao