====== react-native-swipeout ======
[[https://www.npmjs.com/package/react-native-swipeout|react-native-swipeout]]
this.swipeDelete(item.rowid)}]}
onOpen={(sectionID, rowId, direction)=>this.swipeOpen(sectionID, rowId, direction)}>
{item.question}:{item.answer}
}
/>
{{:reactnative:pasted:20190210-165905.png}}
====== deleteしたあと引き出したDELETEが残る ======
autoClose={true}を追加したら解消した。
引き出しのアクションを複数つける
this.swipeDone() }, //ボタンは複数つけることができる
{ text:'delete',backgroundColor:'red', onPress:()=>this.swipeDelete() }
]}
onOpen={(sectionID, rowId, direction)=>this.swipeOpen(sectionID, rowId, direction)}>
{item.name}
{{:reactnative:pasted:20190210-170208.png}}