Skip to content

Commit 70b1305

Browse files
authored
add collapsableChildren to docs and add default value for collapsable (#4365)
1 parent ac22697 commit 70b1305

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

docs/view.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,19 @@ Represents the textual description of the component. Has precedence over the `te
365365

366366
Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to `false` to disable this optimization and ensure that this `View` exists in the native view hierarchy.
367367

368-
| Type |
369-
| ---- |
370-
| bool |
368+
| Type | Default |
369+
| ------- | ------- |
370+
| boolean | true |
371+
372+
---
373+
374+
### `collapsableChildren`
375+
376+
Setting to false prevents direct children of the view from being removed from the native view hierarchy, similar to the effect of setting `collapsable={false}` on each child.
377+
378+
| Type | Default |
379+
| ------- | ------- |
380+
| boolean | true |
371381

372382
---
373383

website/versioned_docs/version-0.76/view.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,19 @@ Represents the textual description of the component. Has precedence over the `te
365365

366366
Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to `false` to disable this optimization and ensure that this `View` exists in the native view hierarchy.
367367

368-
| Type |
369-
| ---- |
370-
| bool |
368+
| Type | Default |
369+
| ------- | ------- |
370+
| boolean | true |
371+
372+
---
373+
374+
### `collapsableChildren`
375+
376+
Setting to false prevents direct children of the view from being removed from the native view hierarchy, similar to the effect of setting `collapsable={false}` on each child.
377+
378+
| Type | Default |
379+
| ------- | ------- |
380+
| boolean | true |
371381

372382
---
373383

0 commit comments

Comments
 (0)