この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
reactnative:react-native-swipeout [2019/02/10 16:59] ips |
reactnative:react-native-swipeout [2019/02/10 17:02] (現在) ips |
||
|---|---|---|---|
| ライン 26: | ライン 26: | ||
| <html>autoClose={true}</html>を追加したら解消した。 | <html>autoClose={true}</html>を追加したら解消した。 | ||
| + | 引き出しのアクションを複数つける | ||
| + | <code> | ||
| + | <Swipeout | ||
| + | sectionID={item.key} | ||
| + | rowID={item.name} | ||
| + | right={[ | ||
| + | { text:'done',backgroundColor:'blue' , onPress:()=>this.swipeDone() }, //ボタンは複数つけることができる | ||
| + | { text:'delete',backgroundColor:'red', onPress:()=>this.swipeDelete() } | ||
| + | ]} | ||
| + | onOpen={(sectionID, rowId, direction)=>this.swipeOpen(sectionID, rowId, direction)}> | ||
| + | <View> | ||
| + | <Text style={{fontSize:20}}>{item.name}</Text> | ||
| + | </View> | ||
| + | </Swipeout> | ||
| + | </code> | ||
| + | {{:reactnative:pasted:20190210-170208.png}} | ||