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
- Use `manuallyActivateRows={true}` to have the `toggleRowActive` prop exposed to rendered rows.
- The out of box timer with pan responder will not activate rows.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,14 @@ npm i react-native-sortable-list --save
29
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
30
-**sortingEnabled?** (boolean) when false, rows are not sortable. The default value is true.
31
31
-**scrollEnabled?** (boolean) when false, the content does not scrollable. The default value is true.
32
+
-**manuallyActivateRows?** (bool) whether you intend to use the `toggleRowActive` method to activate a row or use the out of box solution.
32
33
-**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
34
-**rowActivationTime?** (number) determines time delay in ms before pressed row becomes active. Defaults to 200 ms.<br />
34
35
-**refreshControl?** (element)<br />
35
36
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 />
39
+
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. The child component will receive a method called `toggleRowActive` (only if `manuallyActivateRows={true}`) to manually activate the row. Useful if you have multiple touch responders in your view.<br />
39
40
-**renderFooter?** (function)<br />
40
41
`() => renderable`<br />
41
42
Renders returned component at the bottom of the list.
0 commit comments