Closed Dauie closed 6 years ago
Below is a example of what the page looks like currently. If you grab #4 and move it down, on release the comp will zip back up to the top of the screen.
okay, I fixed this issue, and its not due to sortable-listview (My bad). It was an issue with me not putting my call to open up the realm connection in componentWillMount().
Just moved the realm.open call to:
componentWillMount() {
Realm.open({
schema: [orderSchema],
}).then((realm) => {
this.setState({ realm });
});
}
Everything is working well now. Hope this helps someone in the future. Please close issue when possible.
Hey Everyone,
Appreciate you taking the time to read my post, I usually don't like doing this, but I've racked my brain for a couple of days trying to figure out why the order of my 'data' elements are not changing after one has been moved. I know that my 'order' variable is changing due to a console.log() in the onRowMoved prop, but the order that 'data' is being displayed is not. Below I'm including two snippets the first is where I create 'data' and 'order', the second is my iteration of the 'MyComponent' portion outlined in the examples for this module. Any help would be wonderful.
and the other snippet: