Skip to content

Commit

Permalink
Fix incorrect docs for sceneStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 22, 2024
1 parent 5045ce8 commit 5aa07dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions versioned_docs/version-7.x/bottom-tab-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ It supports the following values:

Boolean used to indicate whether inactive screens should be detached from the view hierarchy to save memory. This enables integration with [react-native-screens](https://github.com/software-mansion/react-native-screens). Defaults to `true`.

#### `sceneContainerStyle`

Style object for the component wrapping the screen content.

#### `tabBar`

Function that returns a React element to display as the tab bar.
Expand Down Expand Up @@ -584,6 +580,10 @@ Boolean indicating whether any nested stack should be popped to the top of the s
It only works when there is a stack navigator (e.g. [stack navigator](stack-navigator.md) or [native stack navigator](native-stack-navigator.md)) nested under the tab navigator.
#### `sceneStyle`
Style object for the component wrapping the screen content.
### Header related options
You can find the list of header related options [here](elements.md#header). These [options](screen-options.md) can be specified under `screenOptions` prop of `Tab.navigator` or `options` prop of `Tab.Screen`. You don't have to be using `@react-navigation/elements` directly to use these options, they are just documented in that page.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-7.x/drawer-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Color overlay to be displayed on top of the content view when drawer gets open.
<source src="/assets/7.x/drawer/overlayColor.mp4" />
</video>

#### `sceneContainerStyle`
#### `sceneStyle`

Style object for the component wrapping the screen content.

Expand Down
8 changes: 4 additions & 4 deletions versioned_docs/version-7.x/material-top-tab-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ Object containing the initial height and width of the screens. Passing this will
}
```

#### `sceneContainerStyle`

Style to apply to the view wrapping each screen. You can pass this to override some default styles such as overflow clipping.

#### `style`

Style to apply to the tab view container.
Expand Down Expand Up @@ -444,6 +440,10 @@ This view is usually only shown for a split second. Keep it lightweight.

By default, this renders `null`.

#### `sceneStyle`

Style to apply to the view wrapping each screen. You can pass this to override some default styles such as overflow clipping.

### Events

The navigator can [emit events](navigation-events.md) on certain actions. Supported events are:
Expand Down

0 comments on commit 5aa07dc

Please sign in to comment.