|
|
|
|
124
|
```
|
124
|
```
|
125
|
|
125
|
|
126
|
### Changing BottomTabs visibility
|
126
|
### Changing BottomTabs visibility
|
|
|
127
|
+
|
127
|
The `visible` property can be used to control the BottomTab visibility.
|
128
|
The `visible` property can be used to control the BottomTab visibility.
|
128
|
|
129
|
|
129
|
On **Android**, Visibility can be toggled dynamically using the `mergeOptions` command. When hiding BottomTabs, `drawBehind: true` should be specified in order for the screen to render behind the area which was previously allocated to the BottomTabs.
|
130
|
On **Android**, Visibility can be toggled dynamically using the `mergeOptions` command. When hiding BottomTabs, `drawBehind: true` should be specified in order for the screen to render behind the area which was previously allocated to the BottomTabs.
|
|
|
|
|
141
|
|
142
|
|
142
|
```js
|
143
|
```js
|
143
|
Navigation.push(componentId, {
|
144
|
Navigation.push(componentId, {
|
144
|
- component: {
|
|
|
145
|
- name: 'pushedScreen',
|
|
|
146
|
- options: { bottomTabs: visible: false }
|
|
|
147
|
- }
|
|
|
148
|
- });
|
|
|
|
|
145
|
+ component: {
|
|
|
146
|
+ name: 'pushedScreen',
|
|
|
147
|
+ options: {
|
|
|
148
|
+ bottomTabs: {
|
|
|
149
|
+ visible: false
|
|
|
150
|
+ }
|
|
|
151
|
+ }
|
|
|
152
|
+ }
|
|
|
153
|
+});
|
149
|
```
|
154
|
```
|
150
|
|
155
|
|
151
|
-
|
|
|
152
|
### Updating options for a specific tab
|
156
|
### Updating options for a specific tab
|
|
|
157
|
+
|
153
|
Updating (merging) tab specific options is done using the `mergeOptions` command. `mergeOptions` expects a `componentId` as first argument, therefore in order to update a specific tab we'll need to pass a `componentId` of a child of that specific tab.
|
158
|
Updating (merging) tab specific options is done using the `mergeOptions` command. `mergeOptions` expects a `componentId` as first argument, therefore in order to update a specific tab we'll need to pass a `componentId` of a child of that specific tab.
|
154
|
For example, Using the layout specified above, To update the `badge` property of the second tab we'll call `mergeOptions` with `SecondScreenId`.
|
159
|
For example, Using the layout specified above, To update the `badge` property of the second tab we'll call `mergeOptions` with `SecondScreenId`.
|
155
|
|
160
|
|