Skip to content

Commit 0baee20

Browse files
authored
Fix ternary typo in bottom-tab-navigator.md (#1397)
1 parent 7b5f693 commit 0baee20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

versioned_docs/version-7.x/bottom-tab-navigator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ const Tabs = createBottomTabNavigator({
447447
```js
448448
<Tab.Navigator
449449
screenOptions={{
450-
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
450+
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
451451
}}
452452
>
453453
```
@@ -465,7 +465,7 @@ You can also render a compact sidebar by placing the label below the icon. This
465465
```js
466466
const Tabs = createBottomTabNavigator({
467467
screenOptions: {
468-
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
468+
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
469469
tabBarVariant: isLargeScreen ? 'material' : 'uikit',
470470
tabBarLabelPosition: 'below-icon',
471471
},

versioned_docs/version-8.x/bottom-tab-navigator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ const Tabs = createBottomTabNavigator({
848848
```js
849849
<Tab.Navigator
850850
screenOptions={{
851-
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
851+
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
852852
}}
853853
>
854854
```
@@ -866,7 +866,7 @@ You can also render a compact sidebar by placing the label below the icon. This
866866
```js
867867
const Tabs = createBottomTabNavigator({
868868
screenOptions: {
869-
tabBarPosition: isLargeScreen ? 'left' ? 'bottom',
869+
tabBarPosition: isLargeScreen ? 'left' : 'bottom',
870870
tabBarVariant: isLargeScreen ? 'material' : 'uikit',
871871
tabBarLabelPosition: 'below-icon',
872872
},

0 commit comments

Comments
 (0)