dancormier / react-native-swipeout

iOS-style swipeout buttons behind component
MIT License
2.62k stars 646 forks source link

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

Open lavarajallu opened 6 years ago

lavarajallu commented 6 years ago

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.

chohra-med commented 5 years ago

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'}}>

Unread } ] and don't forget to add it to Swipeout :