Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

list disappear after drag n drop with some error

See original GitHub issue
"react-native": "0.55.4",
"react-native-draggable-flatlist": "^1.1.2",


this is what i done:

          keyExtractor={(item, index) => `draggable-item-${index}`}
          onMoveEnd={({ rowData }) => this.setState({ rowData })}

renderRowItem = ({ item, index, move, moveEnd, isActive }) => {
    return (
          height: 100,
          alignItems: 'center',
          justifyContent: 'center'
      {/*   <Row data={item} active={active} columnSchema={this.state.columnSchema} searchValue={this.state.searchValue} />; */}

i m getting list successfully. but after drag it just disappear.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

sunrise1002commented, Apr 19, 2019

On onMoveEnd method the name parameter must be 'data' like in the example:

onMoveEnd={({ data }) => this.setState({ data })}
radekzzcommented, Mar 22, 2022

I’m using hooks and i had to set state out of object onMoveEnd={({data}) => setData(data)}

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found