react-native-swipeable icon indicating copy to clipboard operation
react-native-swipeable copied to clipboard

The object error is showing rightButtons.length of null. I'm disable the right buttons swipe

Open Sathiyamm opened this issue 8 years ago • 3 comments

image <Swipeable rightButtons={ (condition)?[ buttons ]:null } >

Sathiyamm avatar Jan 02 '18 07:01 Sathiyamm

Go the same issue, did you find a workaround?

thomasMary avatar Apr 12 '18 16:04 thomasMary

<Swipeable rightButtons={solutions > 0 ? rightButtons : null}>

This did the trick for me.

dringala avatar Jul 13 '18 13:07 dringala

Having the same problem. I would like to have an option to enable and disable dynamicly right or left buttons.

<Swipeable onRef={ref => (this.swipeable = ref)} onRightActionRelease={this._onRightActionRelease} rightButtons={ isSelected ? [ // eslint-disable-next-line react/jsx-key <Delete onPress={this._onRightActionRelease}> <Icon name="trash" size={30} /> </Delete> ] : {} } >

AfanasievN avatar May 07 '19 13:05 AfanasievN