Skip to content

Commit 9e173f0

Browse files
committed
update readme with swipeout props
1 parent 37ebf48 commit 9e173f0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,25 @@ var Listitem = require('react-native-listitem')
2424

2525
Prop | Type | Optional | Default | Description
2626
--------------- | ------ | -------- | --------- | -----------
27-
backgroundColor | string | Yes | '#ffffff' |
27+
text | string | Yes | null | text displayed in listitem
2828
children | string | Yes | null | pass custom component as child
29+
backgroundColor | string | Yes | '#ffffff' |
2930
onPress | func | Yes | null | function executed onPress
3031
paddingTop | int | Yes | 14 |
3132
paddingRight | int | Yes | 16 |
3233
paddingBottom | int | Yes | 16 |
3334
paddingLeft | int | Yes | 16 |
34-
text | string | Yes | null | text displayed in listitem
3535

36+
#### Props for swipeout
37+
38+
Prop | Type | Optional | Default | Description
39+
----------------------- | ------ | -------- | --------- | -----------
40+
swipeoutLeft | array | Yes | [] | swipeout buttons on left
41+
swipeoutRight | array | Yes | [] | swipeout buttons on right
42+
swipeoutAutoClose | bool | Yes | false | auto close on button press
43+
swipeoutBackgroundColor | string | Yes | '#b6bec0' | background color
44+
45+
For swipeout button props, see [react-native-swipeout readme](https://github.com/dancormier/react-native-swipeout/blob/master/README.md)
3646

3747
## To Do
3848

0 commit comments

Comments
 (0)