Skip to content

Release 0.5.0

Compare
Choose a tag to compare
@okwasniewski okwasniewski released this 11 Nov 17:08
· 141 commits to main since this release

What's Changed

Build changes

It's now required to build your app with use_frameworks!, :linkage => :static.

For Expo users add this to your app.json

{
  "expo": {
    "plugins": [
       "react-native-bottom-tabs",
+      [
+        "expo-build-properties",
+        {
+          "ios": {
+            "useFrameworks": "static"
+          }
+        }
+      ]
+    ]
  }
}

SVG Support!

image

You can now pass .svg images either statically or remotely. This release contains rewritten icon handling.

<Tab.Screen
  name="Albums"
  component={Albums}
  options={{
    tabBarIcon: () => require('person.svg'),
    // or
    tabBarIcon: () => ({ uri: 'https://example.com/icon.svg' }),
  }}
/>

Custom fonts

image

You can now pass custom tabLabelStyle:

<Tab.Navigator
  tabLabelStyle={{
    fontFamily: 'Avenir',
      fontSize: 15,
   }}
>

Full Changelog: v0.4.0...v0.5.0