r/react • u/OnARockSomewhere • 16h ago
OC I made the trending floating tab bar for React Native that shrinks to icons when you scroll
I first saw this in District: scroll down and the tab bar shrinks to just its icons, scroll up and the labels come back. I wanted the same thing in React Native without writing a custom tab bar for every app, so I turned it into a package.
react-native-shrinking-tab-bar
• Works with the tab navigator you already have. Pass it as tabBar to React Navigation or Expo Router and it reads your icons, labels and badges.
• Animates transforms and opacity only, on the UI thread. On an Android release build it dropped no more frames than the stock tab bar, even with the JS thread blocked.
• Drag along the bar to switch tabs. The indicator follows your finger.
• Shrink, hide or stay put on scroll. Presets, colours, sizes, placement and an optional action button.
• Optional glass: Liquid Glass on iOS 26, a system blur on older iOS, a frosted fill on Android.
• Handles RTL, screen-reader labels, the keyboard and safe areas.
Live demo: https://ninadsutrave.github.io/react-native-shrinking-tab-bar/
GitHub repo: https://github.com/ninadsutrave/react-native-shrinking-tab-bar
It's at 0.1.0, so I'd like to hear what breaks or what you'd change.
If it's useful to you, a star on GitHub helps other people find it.