$ git show tab-bubble

Bubble tab bar

Intermediate/anim tab-bubble

The active tab swells into a pill that shows its label, and the pill springs over to whichever tab you tap.

Main · New Architecture only · worklets live in react-native-worklets
LinearTransitionFadeIn / FadeOutlayout
tab-bubble.tsx · reanimated 4
// Unchanged in Reanimated 4: layout transitions animate the pill's size and position
import Animated, { LinearTransition, FadeIn, FadeOut } from 'react-native-reanimated';

const TABS = [{ key: 'home', icon: HomeIcon, label: 'Home' }, { key: 'search', icon: SearchIcon, label: 'Search' }, { key: 'me', icon: UserIcon, label: 'Profile' }];
const [active, setActive] = useState('home');
const layout = LinearTransition.springify().damping(18).stiffness(180);

<View style={styles.bar}> {/* flexDirection 'row', justifyContent 'space-around' */}
  {TABS.map(({ key, icon: Icon, label }) => {
    const on = key === active;
    return (
      <Pressable key={key} onPress={() => setActive(key)}>
        <Animated.View layout={layout} style={[styles.tab, on && styles.tabOn]}> {/* tabOn: accent-soft pill */}
          <Icon color={on ? '#2F54EB' : '#8A8F98'} />
          {on && (
            <Animated.Text entering={FadeIn.delay(80)} exiting={FadeOut.duration(80)} style={styles.tabLabel}>
              {label}
            </Animated.Text>
          )}
        </Animated.View>
      </Pressable>
    );
  })}
</View>