From 696068e82fa282d2e8e8722729ba7b3e3d050b1b Mon Sep 17 00:00:00 2001 From: Harry Tran Date: Wed, 19 Apr 2023 13:13:56 +1000 Subject: [PATCH 1/2] docs: add headerBackTestID option in Header component --- versioned_docs/version-6.x/elements.md | 4 ++++ versioned_docs/version-7.x/elements.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/versioned_docs/version-6.x/elements.md b/versioned_docs/version-6.x/elements.md index 9d424f9ca40..81fef3452e6 100644 --- a/versioned_docs/version-6.x/elements.md +++ b/versioned_docs/version-6.x/elements.md @@ -116,6 +116,10 @@ Color for material ripple (Android >= 5.0 only) Press opacity for the buttons in header (Android < 5.0, and iOS) +#### `headerBackTestID` + +TestID used on the back button. Useful for e2e testing with Detox. + #### `headerTransparent` Defaults to `false`. If `true`, the header will not have a background unless you explicitly provide it with `headerBackground`. The header will also float over the screen so that it overlaps the content underneath. diff --git a/versioned_docs/version-7.x/elements.md b/versioned_docs/version-7.x/elements.md index 9d424f9ca40..81fef3452e6 100644 --- a/versioned_docs/version-7.x/elements.md +++ b/versioned_docs/version-7.x/elements.md @@ -116,6 +116,10 @@ Color for material ripple (Android >= 5.0 only) Press opacity for the buttons in header (Android < 5.0, and iOS) +#### `headerBackTestID` + +TestID used on the back button. Useful for e2e testing with Detox. + #### `headerTransparent` Defaults to `false`. If `true`, the header will not have a background unless you explicitly provide it with `headerBackground`. The header will also float over the screen so that it overlaps the content underneath. From c0e1a93dae2e8afa53433920d568f79586a212cf Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Mon, 12 Jan 2026 18:58:46 +0100 Subject: [PATCH 2/2] Document in stack instead of elements --- versioned_docs/version-6.x/elements.md | 4 ---- versioned_docs/version-6.x/stack-navigator.md | 4 ++++ versioned_docs/version-7.x/elements.md | 4 ---- versioned_docs/version-7.x/stack-navigator.md | 4 ++++ versioned_docs/version-8.x/stack-navigator.md | 4 ++++ 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/versioned_docs/version-6.x/elements.md b/versioned_docs/version-6.x/elements.md index eadd972064d..0ab7f618173 100644 --- a/versioned_docs/version-6.x/elements.md +++ b/versioned_docs/version-6.x/elements.md @@ -156,10 +156,6 @@ Color for material ripple (Android >= 5.0 only) Press opacity for the buttons in header (Android < 5.0, and iOS) -#### `headerBackTestID` - -TestID used on the back button. Useful for e2e testing with Detox. - #### `headerTransparent` Defaults to `false`. If `true`, the header will not have a background unless you explicitly provide it with `headerBackground`. The header will also float over the screen so that it overlaps the content underneath. diff --git a/versioned_docs/version-6.x/stack-navigator.md b/versioned_docs/version-6.x/stack-navigator.md index 3debecc1f7b..2cfb0aa2787 100755 --- a/versioned_docs/version-6.x/stack-navigator.md +++ b/versioned_docs/version-6.x/stack-navigator.md @@ -370,6 +370,10 @@ Title string used by the back button when `headerBackTitle` doesn't fit on the s Style object for the back title. +#### `headerBackTestID` + +Test ID for the back button for testing purposes. + ### Events The navigator can [emit events](navigation-events.md) on certain actions. Supported events are: diff --git a/versioned_docs/version-7.x/elements.md b/versioned_docs/version-7.x/elements.md index 03ce4f06155..688f45b88b4 100644 --- a/versioned_docs/version-7.x/elements.md +++ b/versioned_docs/version-7.x/elements.md @@ -434,10 +434,6 @@ Color for material ripple (Android >= 5.0 only) Press opacity for the buttons in header (Android < 5.0, and iOS) -#### `headerBackTestID` - -TestID used on the back button. Useful for e2e testing with Detox. - #### `headerTransparent` Defaults to `false`. If `true`, the header will not have a background unless you explicitly provide it with `headerBackground`. The header will also float over the screen so that it overlaps the content underneath. diff --git a/versioned_docs/version-7.x/stack-navigator.md b/versioned_docs/version-7.x/stack-navigator.md index 4d54aa87d3f..e4cce6f89c8 100755 --- a/versioned_docs/version-7.x/stack-navigator.md +++ b/versioned_docs/version-7.x/stack-navigator.md @@ -364,6 +364,10 @@ Defaults to `default` on iOS, and `minimal` on Android. Style object for the back title. +#### `headerBackTestID` + +Test ID for the back button for testing purposes. + ### Events The navigator can [emit events](navigation-events.md) on certain actions. Supported events are: diff --git a/versioned_docs/version-8.x/stack-navigator.md b/versioned_docs/version-8.x/stack-navigator.md index 1cbbea8e65f..f410555d0bd 100755 --- a/versioned_docs/version-8.x/stack-navigator.md +++ b/versioned_docs/version-8.x/stack-navigator.md @@ -364,6 +364,10 @@ Defaults to `default` on iOS, and `minimal` on Android. Style object for the back title. +#### `headerBackTestID` + +Test ID for the back button for testing purposes. + ### Events The navigator can [emit events](navigation-events.md) on certain actions. Supported events are: