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

How can we show left or right onOpen default in list view? Is it Possible ?

Open lavarajallu opened this issue 7 years ago • 1 comments

screen shot 2018-01-20 at 12 19 15 pm

I want show button at least one like above screen.If it is possible how can i show this please make it an example.

lavarajallu avatar Jan 20 '18 06:01 lavarajallu

you need to customize it, let's say for example : var swipeoutBtns = [ { text: Unread, backgroundColor: '#2E86C1', underlayColor: 'rgba(0, 0, 0, 1, 0.6)', onPress: props.onSend, component:<View style={{flex:1,alignItems:'center',justifyContent:'center'}}> <Icon name='message' color='white' size={70}/> <Text style={{color:'white'}}>Unread </Text> </View> } ] and don't forget to add it to Swipeout : <Swipeout right={swipeoutBtns} >

chohra-med avatar May 24 '19 14:05 chohra-med