Skip to content

Fix ternary typo in bottom-tab-navigator.md #1397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions versioned_docs/version-7.x/bottom-tab-navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ When the tab bar is positioned on the `left` or `right`, it is styled as a sideb
```js
const Tabs = createBottomTabNavigator({
screenOptions: {
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
},

// ...
Expand All @@ -508,7 +508,7 @@ const Tabs = createBottomTabNavigator({
```js
<Tab.Navigator
screenOptions={{
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
}}
>
```
Expand All @@ -526,7 +526,7 @@ You can also render a compact sidebar by placing the label below the icon. This
```js
const Tabs = createBottomTabNavigator({
screenOptions: {
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
tabBarVariant: isLargeScreen ? 'material' : 'uikit',
tabBarLabelPosition: 'below-icon',
},
Expand Down
Loading