Skip navigation
What is the difference between React Native JS Bottom Tabs and Native Bottom Tabs? 👀
0:00 / 0:40

What is the difference between React Native JS Bottom Tabs and Native Bottom Tabs? 👀

Oskar

@o_kwasniewski8.2K followers

Visit on X
171 likesDownloadOriginal post

15,843 views

What is the difference between React Native JS Bottom Tabs and Native Bottom Tabs? 👀 Native bottom tabs use native platform primitives to render tabs (TabView from SwiftUI and BottomNavigationView on Android), while JS Tabs recreate this UI as closely as possible. This approach works well but tabs can have different appearances on different platforms, here is an example:

11 Comments

Comments from the original post on X (Twitter)

  • Oskar Kwaśniewski's profile picture

    @o_kwasniewski

    The API surface will be an (almost) 1:1 match with JS Bottom Tabs 🙌 This project is not yet released as I am working on this in my free time but I can't wait for you to try it out!

    29 likes

  • Evan Bacon 🥓's profile picture

    @Baconbrix

    cool 😎 what happens across platforms when you add +10 items?

    14 likes

  • Oskar Kwaśniewski's profile picture

    @o_kwasniewski

    Thanks! BottomNavigationView from Android supports only 6 items so it shows an error 😆 However, on iOS you get the "More" button which is currently not working as lazy loading is not getting any events about entering these views from "more" list but we can fix it

    15 likes

  • Matin's profile picture

    @matinzd

    Do we have lazy loading as well?

    5 likes

  • Oskar Kwaśniewski's profile picture

    @o_kwasniewski

    Yeah! I Implemented it yesterday evening. This is how the API looks like if you want to use it without React Navigation. It follows the same pattern as Material Bottom Tabs from React Native Paper. But most of this will be abstracted from users by React Navigation.

    13 likes

  • Hirbod's profile picture

    @hirbod_dev

    This is so nice @o_kwasniewski. Can't wait to try it!

    2 likes

  • Jakov Glavina's profile picture

    @jakovg2

    This is awesome! Great work!

    1 like

  • Oskar Kwaśniewski's profile picture

    @o_kwasniewski

    Thanks!

  • Gautham Vijayan's profile picture

    @gautham_vijay_

    We use bottomtabs library for our app. What is the benchmark of performance in Android and iOS for your library vs the react-navigation bottom tabs. It would be nice if I can see it and does it support fade in logic like how stack screens do? Can this bottom tab be nested inside a native stack from react-navigation so this whole bottom tab is a stack? These are my questions so I can try this out.

    1 like

  • Javier 🇦🇷🇦🇷🇦🇷's profile picture

    @neiker

    Can the icons be lottie files?

    1 like

  • Oskar Kwaśniewski's profile picture

    @o_kwasniewski

    I didn’t implement custom icons support yet so I will do some research on what we need to support Lottie files later

    2 likes