@react-navigation/elements 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.tsx CHANGED
@@ -273,8 +273,14 @@ export type HeaderBackButtonProps = Omit<HeaderButtonProps, 'children'> & {
273
273
  */
274
274
  truncatedLabel?: string;
275
275
  /**
276
- * Whether the label text is visible.
277
- * Defaults to `true` on iOS and `false` on Android.
276
+ * How the back button displays icon and title.
277
+ *
278
+ * Supported values:
279
+ * - "default" - Displays one of the following depending on the available space: previous screen's title, truncated title (e.g. 'Back') or no title (only icon).
280
+ * - "generic" – Displays one of the following depending on the available space: truncated title (e.g. 'Back') or no title (only icon).
281
+ * - "minimal" – Always displays only the icon without a title.
282
+ *
283
+ * Defaults to "default" on iOS, and "minimal" on other platforms.
278
284
  */
279
285
  displayMode?: HeaderBackButtonDisplayMode;
280
286
  /**