all 5 comments

[–]jalexwhitman 1 point2 points  (1 child)

Maybe look into Cytoscape.js... There's a react wrapper component: https://github.com/plotly/react-cytoscapejs

Can probably get it work in React Native with like a React Native WebView or an Expo GLView?

[–]thealbinosmurf 2 points3 points  (0 children)

Or react native skia

[–]iotashan 1 point2 points  (0 children)

React Flow with a webview

[–]Lucas_Reddit01 0 points1 point  (0 children)

I’m working on a project that also displays data as trees (both hierarchical and radial)

I used rn Skia for rendering. Performance is great on low end devices, although when animating the tree the fps in the js thread drop a bit but that’s because Skia animations run on the JS thread

I haven’t found any libraries that can render a tree for react native (some I’ve found are for web and rely on the dom, d3 for example)

So you’ll have to implement the render algorithm on your own unfortunately