list disappear after drag n drop with some error
See original GitHub issueIssue Description
"react-native": "0.55.4",
"react-native-draggable-flatlist": "^1.1.2",
this is what i done:
<DraggableFlatList
data={this.state.rowData}
renderItem={this.renderRowItem}
scrollPercent={5}
keyExtractor={(item, index) => `draggable-item-${index}`}
onMoveEnd={({ rowData }) => this.setState({ rowData })}
/>
renderRowItem = ({ item, index, move, moveEnd, isActive }) => {
return (
<TouchableOpacity
onLongPress={move}
onPressOut={moveEnd}
style={{
height: 100,
alignItems: 'center',
justifyContent: 'center'
}}
>
<Text>{item.name}</Text>
{/* <Row data={item} active={active} columnSchema={this.state.columnSchema} searchValue={this.state.searchValue} />; */}
</TouchableOpacity>
)
}
i m getting list successfully. but after drag it just disappear.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
Dragged item disappears on drop - javascript - Stack Overflow
This is happening because when you set the textContent property, any child nodes are removed and replaced by a single Text node containing ......
Read more >email folder disappears if drag and drop into list of emails
into the list of emails (reading pane) and the whole folder disappeared including all mails in it and I cannot find it anywhere....
Read more >Video: Manage drop-down lists - Microsoft Support
Your boss wanted you to protect a workbook, but she also wanted to be able to change a few cells after you were...
Read more >Fixing disappearing drag and drop items on iOS - Medium
Since the release of Drag and Drop in iOS 15, moving around photos, files and text from app to app or from one...
Read more >Can't Drag And Drop Things in Windows 10? Here's How to ...
In File Explorer, click any file or folder and hold the left button on your mouse. Then, press the Esc key. Now, try...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
On
onMoveEnd
method the name parameter must be'data'
like in the example:I’m using hooks and i had to set state out of object
onMoveEnd={({data}) => setData(data)}