question-mark
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.

Sluggish dragging

See original GitHub issue

We implemented the package successfully in a project but in the layout setup we now use it behaves badly, very sluggish. See https://youtu.be/TKfnQ_vEnDY as reference.

The layout is currently build up like this:

<View style={{flex: 1, backgroundColor: Colors.white}}>
  <Router>
    <Scene>
      <Scene>
        <Scene>
          <SortableListView 
            renderRow={row => <Row /* TouchableHighlight as seen in the examples */ />} 
          />
        </Scene>
      </Scene>
    </Scene>
  </Router>
</View>

SortableListView has no flex style, but a fixed height.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mamidalacommented, Dec 7, 2016

+1, am too facing the issue. And in android it is very sluggish, and sometimes dragged component stuck in middle as reported by @pierot .

0reactions
Jarred-Sumnercommented, Mar 9, 2017

After upgrading this package and React Native to the latest version, I’m no longer able to build the project 😦

Edit: moving to a separate issue since this is unrelated to this particular issue

➜  alarmclockv2 git:(master) βœ— react-native start
Scanning 647 folders for symlinks in /Users/jarred/Code/alarmclockv2/node_modules (14ms)
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚  Running packager on port 8081.                                            β”‚
 β”‚                                                                            β”‚
 β”‚  Keep this packager running while developing on any JS projects. Feel      β”‚
 β”‚  free to close this tab and run your own packager instance if you          β”‚
 β”‚  prefer.                                                                   β”‚
 β”‚                                                                            β”‚
 β”‚  https://github.com/facebook/react-native                                  β”‚
 β”‚                                                                            β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Looking for JS files in
   /Users/jarred/Code/alarmclockv2

Loading dependency graph...
React packager ready.

Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: jsc-heap-capture
  Paths: /Users/jarred/Code/alarmclockv2/node_modules/react-native-sortable-listview/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json collides with /Users/jarred/Code/alarmclockv2/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: jsc-heap-capture
  Paths: /Users/jarred/Code/alarmclockv2/node_modules/react-native-sortable-listview/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json collides with /Users/jarred/Code/alarmclockv2/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (/Users/jarred/Code/alarmclockv2/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
    at p.getName.then.name (/Users/jarred/Code/alarmclockv2/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sluggish window dragging in windows 10, with Office Apps
When trying to drag any Office program open window using the mouse, the drag is very slow, severely lagging behind the mouse motion....
Read more >
Windows 11 Lagging When Dragging Windows? Try these fixes
Normally, when you drag a window, it snaps to where you. ... Upon dragging a window, it does not move much and the...
Read more >
Dragging window not smooth, slow and shows lag in Windows ...
If dragging a window or file is not smooth, is slow, shows lag, the movement of the cursor is not as smooth as...
Read more >
Window Dragging Lag : r/Windows11 - Reddit
If you keep it open, you will face dragging lag but if you close it, everything is working fine. It's still on fixed...
Read more >
Slow drag (dance) - Wikipedia
The Slow drag must begin on the first beat of each measure. Β· When moving forward, drag the left foot; when moving backward,...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found