react-native-tree-multi-select
Version:
A super-fast, customizable tree view component for React Native with multi-selection, checkboxes, and search filtering capabilities.
13 lines • 720 B
TypeScript
import { TreeNode, __FlattenedTreeNode__ } from "../types/treeView.types";
/**
* Flatten the tree and attach a "level" key to object to indicate it's depth. This
* returns the flattened tree data of expanded ids only. We do not prune the tree off the
* children after the flattening as it would be unnecessary computation.
*
* @param nodes - Input recursive tree
* @param expandedIds - ids of currently expanded nodes
* @param __level__ - (optional) for internal recursive use only
* @returns Flattened tree data with expanded ids only
*/
export declare function getFlattenedTreeData<ID>(nodes: TreeNode<ID>[], expandedIds: Set<ID>): __FlattenedTreeNode__<ID>[];
//# sourceMappingURL=flattenTree.helper.d.ts.map