You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -23,31 +23,31 @@ npm i react-native-sortable-list --save
23
23
### API
24
24
#### Props
25
25
-**data** (Object) data source
26
-
-**order** (Array) an array of keys from data, the order of keys from the array will be used to initial rows order
27
-
-**style** (Object, Array)
28
-
-**contentContainerStyle** (Object, Array) these styles will be applied to the inner scroll view content container
29
-
-**horizontal** (boolean) when true, the SortableList's children are arranged horizontally in a row instead of vertically in a column. The default value is false.
30
-
-**sortingEnabled** (boolean) when false, rows are not sortable. The default value is true.
31
-
-**scrollEnabled** (boolean) when false, the content does not scrollable. The default value is true.
32
-
-**autoscrollAreaSize** (number) determines the height for vertical list and the width for horizontal list of the area at the begining and the end of the list that will trigger autoscrolling. Defaults to 60.<br />
33
-
-**refreshControl** (element)<br />
26
+
-**order?** (Array) an array of keys from data, the order of keys from the array will be used to initial rows order
27
+
-**style?** (Object, Array)
28
+
-**contentContainerStyle?** (Object, Array) these styles will be applied to the inner scroll view content container
29
+
-**horizontal?** (boolean) when true, the SortableList's children are arranged horizontally in a row instead of vertically in a column. The default value is false.
30
+
-**sortingEnabled?** (boolean) when false, rows are not sortable. The default value is true.
31
+
-**scrollEnabled?** (boolean) when false, the content does not scrollable. The default value is true.
32
+
-**autoscrollAreaSize?** (number) determines the height for vertical list and the width for horizontal list of the area at the begining and the end of the list that will trigger autoscrolling. Defaults to 60.<br />
33
+
-**refreshControl?** (element)<br />
34
34
A RefreshControl that works the same way as a ScrollView's refreshControl.
Takes a row key, row index, data entry from the data source and its statuses disabled, active and should return a renderable component to be rendered as the row.<br />
38
-
-**renderFooter** (function)<br />
38
+
-**renderFooter?** (function)<br />
39
39
`() => renderable`<br />
40
40
Renders returned component at the bottom of the list.
41
-
-**onChangeOrder** (function)<br />
41
+
-**onChangeOrder?** (function)<br />
42
42
`(nextOrder) => void`<br />
43
43
Called when rows were reordered, takes an array of rows keys of the next rows order.
44
-
-**onActivateRow** (function)<br />
44
+
-**onActivateRow?** (function)<br />
45
45
`(key) => void`<br />
46
46
Called when a row was activated (user long tapped).
0 commit comments