Skip to content

Commit e1f57fc

Browse files
authoredJan 29, 2025
[autofix.ci] apply automated fixes
1 parent 93dfd91 commit e1f57fc

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed
 

‎blog/2025-01-29-using-react-navigation-with-native-bottom-tabs.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ This is a guest post by Oskar Kwaśniewski, creator of `react-native-bottom-tabs
88

99
This blog post will explain the differences between the JavaScript Bottom Tabs navigator and provide a step-by-step guide for integrating React Navigation with the Native Bottom Tabs Navigator.
1010

11-
1211
## Introduction
1312

14-
React Navigation comes with many navigators out of the box. We've got Stack, Native Stack, Drawer, and Bottom Tabs, but there were no Native Bottom Tabs until today!
13+
React Navigation comes with many navigators out of the box. We've got Stack, Native Stack, Drawer, and Bottom Tabs, but there were no Native Bottom Tabs until today!
1514

1615
Both Android and iOS have predefined native components for handling bottom navigation. For iOS it's SwiftUI's `TabView` component and for Android it's `BottomNavigationView`. The native approach gives us an appropriate appearance no matter the platform we are running on. Native Bottom Tabs is a navigator that wraps the native `TabView` and `BottomNavigationView` - so you can use them with React Navigation.
1716

@@ -23,12 +22,11 @@ Note: Native Bottom Tabs navigator is a standalone package, not released as part
2322

2423
You still might be wondering the difference between `@react-navigation/bottom-tabs` and `react-native-bottom-tabs`.
2524

26-
Let's go over the main differences:
25+
Let's go over the main differences:
2726

2827
- JS Bottom Tabs recreate the UI as closely as possible while **Native Bottom Tabs use native platform primitives** to create the tabs. This makes your tab navigation indistinguishable from Native Apps as they use the same components under the hood.
2928
- Native Bottom Tabs **adapt to interfaces of a given platform** for example: tvOS and visionOS show tabs as a sidebar on iPadOS they appear at the top, while JS Bottom Tabs are always at the bottom.
3029

31-
3230
### Distinctive features of Native Bottom Tabs
3331

3432
#### Multi-platform support
@@ -71,7 +69,6 @@ The operating system recognizes navigation in your app making the Picture in Pic
7169

7270
For iOS bottom navigation has a built-in blur making your app stand out. For Android, you can choose between Material 2 and Material 3 and leverage Material You system styling.
7371

74-
7572
#### Sidebar
7673

7774
TabView can turn in to a side bar on tvOS, iPadOS and macOS. The `sidebarAdaptable` prop controls this.
@@ -80,7 +77,6 @@ TabView can turn in to a side bar on tvOS, iPadOS and macOS. The `sidebarAdaptab
8077

8178
To get started follow the installation instructions in the `react-native-bottom-tabs` [documentation](https://callstackincubator.github.io/react-native-bottom-tabs/docs/getting-started/quick-start.html).
8279

83-
8480
Native Bottom Tabs Navigation resembles JavaScript Tabs API as closely as possible. Making your migration straightforward.
8581

8682
As mentioned before, Native Bottom Tabs use native primitives to create the tabs. This approach also has some downsides: Native components enforce certain constraints that we need to follow.
@@ -102,10 +98,10 @@ There are a few differences between the APIs worth noting. One of the biggest is
10298
}}
10399
/>
104100
```
105-
So if you need full customizability like providing custom tab bar icons, and advanced styling that goes beyond what’s possible with native components you should use JavaScript bottom tabs.
106101

107-
On top of that, the scope of this library doesn’t include the web so for that platform, you should use JavaScript Tabs.
102+
So if you need full customizability like providing custom tab bar icons, and advanced styling that goes beyond what’s possible with native components you should use JavaScript bottom tabs.
108103

104+
On top of that, the scope of this library doesn’t include the web so for that platform, you should use JavaScript Tabs.
109105

110106
To get started you can import `createNativeBottomTabNavigator` from `@bottom-tabs/react-navigation` and use it the same way as JavaScript Bottom Tabs.
111107

@@ -143,7 +139,3 @@ function NativeBottomTabs() {
143139
You can check out the project [here](https://github.com/callstackincubator/react-native-bottom-tabs).
144140

145141
Thanks for reading!
146-
147-
148-
149-

‎blog/authors.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dawid:
4040
x: trensik
4141
github: Trancever
4242

43-
4443
oskar:
4544
name: Oskar Kwaśniewski
4645
image_url: https://avatars.githubusercontent.com/u/52801365

0 commit comments

Comments
 (0)