Closed webdevsyd closed 6 years ago
hey @webdevsyd
you could do so like the following
i am using react-native-elements to get the Icon class
swipeoutBtns : [
{
component:<Icon raised
color='white'
containerStyle={{backgroundColor: '#FF5722'}}
name='delete'/>,
onPress:()=>this.setState({delete:true})
}
]
@webdevsyd https://github.com/dancormier/react-native-swipeout#button-props component
prop
Hi @dancormier
I would like to ask if how can I add an icon in the swipe button, the design that was given to me uses an icon instead of text. Hope you can help me. Thank you!