Skip to content

Commit ddcf997

Browse files
authored
Update buttons documentation (wix#6842)
Multiple left buttons as well as textual and component buttons are not supported on Android.
1 parent f55bd3b commit ddcf997

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

website/docs/docs/docs-stack.mdx

+4-12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The stack manages the TopBar at the top of the stack. The TopBar displays the cu
2626
}>
2727
<TabItem value="single">
2828

29+
2930
A stack declared with a single child.
3031

3132
```js
@@ -43,6 +44,7 @@ const stack = {
4344
</TabItem>
4445
<TabItem value="multiple">
4546

47+
4648
A stack can be initialized with more than one child, in which case the last child will be the currently displayed child and the first child will be hidden. In this case the back button will be visible automatically, clicking it will go back in the stack revealing the first (previous) child.
4749
Once the root child becomes visible, the back button is hidden.
4850

@@ -66,6 +68,7 @@ const stack = {
6668
</TabItem>
6769
</Tabs>
6870

71+
6972
## TopBar Buttons
7073

7174
Buttons can be added to the [right](#rightButtons) and [left](#leftButtons) areas of the TopBar. Buttons can have either an icon or a text. They are declared in the the options object and, as with any other option, can be updated dynamically with the `Navigation.mergeOptions` command.
@@ -82,20 +85,9 @@ To do so on iOS, include a button with a menu icon and open an [ActionSheet](htt
8285

8386
On Android, use the [showAsAction](../api/options-button#showasaction) options to control when the button should appear in the menu.
8487

85-
### Left button
86-
87-
Left buttons behave like right buttons with two caveats on Android:
88-
89-
- Only a single left button is allowed
90-
- Textual left button isn't supported
91-
9288
### Using a react component in a button
9389

94-
:::caution
95-
At the moment, custom buttons in `leftButtons` are supported only on iOS.
96-
:::
97-
98-
Sometimes we require more from our buttons. In order to support every product need React Components can be used as custom views of buttons.
90+
Sometimes we require more from our buttons. In order to support every product need, React Components can be used as custom views of buttons.
9991
To do so, you'll first need to register the view with Navigation, just like you register your components used as screens:
10092

10193
```js

0 commit comments

Comments
 (0)