react-native-tree-multi-select icon indicating copy to clipboard operation
react-native-tree-multi-select copied to clipboard

[FEAT-REQ] Ability to use multiple trees simultaneously

Open StasSharp opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. First of all, thanks for this truly amazing library!

My problem is that I need to use two trees in one view with different data sets, and since the library is using Zustand with a global store, both trees were showing the same set of values. I was able to overcome it with a dirty hack, but it would be great if there was the ability to use multiple trees in one view.

Describe the solution you'd like The best solution would be to be able to have any amount of TreeViewes hosted on the same page with no data duplication. Something like:

<TreeView data={data1} />  
<TreeView data={data2} />

showing different data.

Describe alternatives you've considered I ended up duplicating the store and duplicating the TreeView component (to have "TreeView2") for now, but it's a very dirty solution, it would be great if the library supported it.

Screenshots or screen records NA

Additional context NA

Would you like to work on this feature? Unfortunately, I'm not good enough with React to be able to work on it

StasSharp avatar Sep 16 '24 12:09 StasSharp