r/coolgithubprojects • • 27m ago

I made the trending floating tab bar for React Native that shrinks to icons when you scroll

Post image

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.

• 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.

1 Upvotes

0 comments sorted by