You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing I'm trying to build looks like this,
on the top, there is a list of nodes that could be dragged into the view below
on the bottom, it is a graph that contains nodes from top
and nodes in the bottom view can also be dragged to reorder.
When I drag a node and release on bottom view,
I modify the nodes array inside onEnd of the pan gesture to add a new node
this will cause a rerender of the whole system, and with a noticeable lag.
Is there a better way to architect this kind of app with react-native-reanimated?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have an array of nodes
Node[]
and it gets rendered as something like
<Node name="" />
Now, I want to add gestures to my node,
The thing I'm trying to build looks like this,
on the top, there is a list of nodes that could be dragged into the view below
on the bottom, it is a graph that contains nodes from top
and nodes in the bottom view can also be dragged to reorder.
When I drag a node and release on bottom view,
I modify the nodes array inside
onEnd
of the pan gesture to add a new nodethis will cause a rerender of the whole system, and with a noticeable lag.
Is there a better way to architect this kind of app with react-native-reanimated?
Beta Was this translation helpful? Give feedback.
All reactions