Skip to content

Commit 01b9a1a

Browse files
committed
Update native-stack docs
Closes #1383
1 parent 92e668e commit 01b9a1a

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

versioned_docs/version-7.x/native-stack-navigator.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,9 @@ Requires setting `View controller-based status bar appearance -> YES` (or removi
704704

705705
Only supported on Android and iOS.
706706

707-
#### `statusBarColor`
707+
#### `statusBarBackgroundColor`
708708

709-
Sets the status bar color (similar to the `StatusBar` component). Defaults to initial status bar color.
709+
Sets the background color of the status bar (similar to the `StatusBar` component).
710710

711711
Only supported on Android.
712712

@@ -736,6 +736,12 @@ Doesn't affect the behavior of screens presented modally.
736736

737737
Only supported on iOS.
738738

739+
#### `fullScreenGestureShadowEnabled`
740+
741+
Whether the full screen dismiss gesture has shadow under view during transition. Defaults to `true`.
742+
743+
This does not affect the behavior of transitions that don't use gestures enabled by `fullScreenGestureEnabled` prop.
744+
739745
#### `gestureEnabled`
740746

741747
Whether you can use gestures to dismiss this screen. Defaults to `true`. Only supported on iOS.

versioned_docs/version-7.x/upgrading-from-6.x.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,17 @@ The `customAnimationOnGesture` option in Native Stack Navigator is renamed to `a
288288

289289
See [Native Stack Navigator](native-stack-navigator.md#animationmatchesgesture) for usage.
290290

291+
#### `statusBarColor` is renamed to `statusBarBackgroundColor` in Native Stack Navigator
292+
293+
The `statusBarColor` option in Native Stack Navigator is renamed to `statusBarBackgroundColor` to better reflect its purpose. If you are using `statusBarColor` in your project, you can rename it to `statusBarBackgroundColor`:
294+
295+
```diff lang=js
296+
- <Stack.Navigator options={{ statusBarColor: 'tomato' }}>
297+
+ <Stack.Navigator options={{ statusBarBackgroundColor: 'tomato' }}>
298+
```
299+
300+
See [Native Stack Navigator](native-stack-navigator.md#statusbarbackgroundcolor) for usage.
301+
291302
#### Native Stack now requires `react-native-screens` 4
292303

293304
`@react-navigation/native-stack` now requires `react-native-screens` 4 and will break when using an earlier version. If you are using Native Stack Navigator in your project, make sure to upgrade `react-native-screens` to version 4.

0 commit comments

Comments
 (0)