react-native-sortable-list
react-native-sortable-list copied to clipboard
Sorting list after updating data: error in _findRowUnderActiveRow
Hi!
When i update the data and try to move an element to my list, i received an error:
TypeError: TypeError: TypeError: undefined is not an object (evaluating 'this.state.data.length')
This one is located under _findRowUnderActiveRow line 429.
I check my order and my list, all is good, when i add my element, is shown in the list.
I also use redux for mapping reducer state to props and dispatch to update the data and order (all working, when i restart the application, the store is restored by redux, and it's work (the sorting too).
To solve this issue, i have to add the element at the top of the list. When you add at the bottom, you have the given error.
Can we solve this issue ?