Skip to content

1.1.0

Choose a tag to compare

@MohamedAbdElNaby MohamedAbdElNaby released this 26 Oct 17:44
· 61 commits to main since this release

Enhancements

  • SVG and vector icons in the bottom tab bar, with a focused icon under the drop (edd872b)
    tabBarIcon can return any element: react-native-svg, react-native-vector-icons, images or text. Under the liquid drop each tab is drawn in its focused state, so a single icon is recolored, and a separate focused icon (outline → filled) is swapped in.
    // One icon that changes color
    tabBarIcon: ({ color, size }) => <Icon name="settings" color={color} size={size} />,
    // Two icons
    tabBarIcon: ({ focused, color, size }) => (
      <Icon name={focused ? 'home' : 'home-outline'} color={color} size={size} />
    ),
  • Dark drop in dark mode, bigger lift, liquid settle (816da05)
    In dark mode the drop has a dark body that matches the bar. It lifts a little bigger (1.38 × 1.2). On release it first loses its reflections and returns to tab size while still liquid, then melts into the pill (iOS and Android).
  • New example app: the example folder is now a React Native CLI app with SVG tab icons, installed from npm (d2bbaca).

Fixed

  • iOS: the drop is clear glass instead of frosted, with its light or dark body drawn as a separate layer (6734f79).
  • Smoother reflection fade and size settle: reflections fade over most of the settle, and the size eases back without a wobble (489dc94).

Install

yarn add @mohamed_abd_elnaby/react-native-liquid@1.1.0
cd ios && pod install

Full Changelog: 1.0.0...1.1.0