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
|`data`|`TreeNode[]`| Yes | An array of `TreeNode` objects |
100
+
|`data`|[TreeNode](#treenode)| Yes | An array of `TreeNode` objects |
101
101
|`onCheck`|`(checkedIds: string[]) => void`| No | Callback when a checkbox is checked |
102
102
|`onExpand`|`(expandedIds: string[]) => void`| No | Callback when a node is expanded |
103
-
|`preselectedIds`|`string[]`| No | An array of `id`s that should be pre-selected |
104
-
|`preExpandedIds`|`string[]`| No | An array of `id`s that should be pre-expanded |
103
+
|`preselectedIds`|`string[]`| No | An array of `id`s that should be pre-selected |
104
+
|`preExpandedIds`|`string[]`| No | An array of `id`s that should be pre-expanded |
105
105
|`indentationMultiplier`|`number`| No | Indentation (`marginStart`) per level (defaults to 15) |
106
-
|`treeFlashListProps`|`TreeFlatListProps`| No | Props for the flash list |
107
-
|`checkBoxViewStyleProps`|`BuiltInCheckBoxViewStyleProps`| No | Props for the checkbox view |
108
-
|`CheckboxComponent`|`ComponentType<CheckBoxViewProps>`| No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109
-
|`ExpandCollapseIconComponent`|`ComponentType<ExpandIconProps>`| No | A custom expand/collapse icon component |
110
-
|`ExpandCollapseTouchableComponent`|`ComponentType<TouchableOpacityProps>`<br />(React Native's `TouchableOpacityProps`)| No | A custom expand/collapse touchable component |
111
-
|`CustomNodeRowComponent`|`React.ComponentType<NodeRowProps>`| No | Custom row item component |
106
+
|`treeFlashListProps`|[TreeFlatListProps](#treeflatlistprops)| No | Props for the flash list |
107
+
|`checkBoxViewStyleProps`|[BuiltInCheckBoxViewStyleProps](#builtincheckboxviewstyleprops)| No | Props for the checkbox view |
108
+
|`CheckboxComponent`|`ComponentType<`[CheckBoxViewProps](#checkboxviewprops)`>`| No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109
+
|`ExpandCollapseIconComponent`|`ComponentType<`[ExpandIconProps](#expandiconprops)`>`| No | A custom expand/collapse icon component |
110
+
|`ExpandCollapseTouchableComponent`|`ComponentType<`[TouchableOpacityProps](https://reactnative.dev/docs/touchableopacity#props)`>`| No | A custom expand/collapse touchable component |
111
+
|`CustomNodeRowComponent`|`React.ComponentType<`[NodeRowProps](#noderowprops)`>`| No | Custom row item component |
112
112
113
113
ℹ️ If `CustomNodeRowComponent` is provided then below props are not applied:
0 commit comments