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
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/elements.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,10 @@ It receives an object containing following properties:
233
233
-`tintColor`: The color of the icon and label.
234
234
-`pressColor`: The color of the material ripple (Android >= 5.0 only).
235
235
-`pressOpacity`: The opacity of the button when it's pressed (Android < 5.0, and iOS).
236
-
-`labelVisible`: Whether the label text is visible. Defaults to `true` on iOS and `false` on Android.
236
+
-`displayMode`: How the element displays icon and title. Defaults to `default` on iOS and `minimal` on Android. Possible values:
237
+
-`default`: Displays one of the following depending on the available space: previous screen's title, generic title (e.g. 'Back') or no title (only icon).
238
+
-`generic`: Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon). iOS >= 14 only, falls back to "default" on older iOS versions.
239
+
-`minimal`: Always displays only the icon without a title.
237
240
-`href`: The URL to open when the button is pressed on the Web.
238
241
239
242
You can use it to implement your custom left button, for example:
@@ -637,7 +640,10 @@ A component used to show the back button header. It's the default for [`headerLe
637
640
-`tintColor` - Tint color for the header.
638
641
-`label` - Label text for the button. Usually the title of the previous screen. By default, this is only shown on iOS.
639
642
-`truncatedLabel` - Label text to show when there isn't enough space for the full label.
640
-
-`labelVisible` - Whether the label text is visible. Defaults to `true` on iOS and `false` on Android.
643
+
-`displayMode`: How the back button displays icon and title. Defaults to `default` on iOS and `minimal` on Android. Possible values:
644
+
-`default`: Displays one of the following depending on the available space: previous screen's title, generic title (e.g. 'Back') or no title (only icon).
645
+
-`generic`: Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon). iOS >= 14 only, falls back to "default" on older iOS versions.
646
+
-`minimal`: Always displays only the icon without a title.
641
647
-`labelStyle` - Style object for the label.
642
648
-`allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings.
643
649
-`onLabelLayout` - Callback to trigger when the size of the label changes.
0 commit comments