Release 0.5.0
What's Changed
- fix: appearance handling on iOS by @okwasniewski in #133
- fix(iOS): various fixes for Apple TV by @douglowder in #134
- feat: add custom fonts support by @okwasniewski in #135
- docs: instruct users to use one config plugin by @okwasniewski in #136
- feat: svg support by @okwasniewski in #138
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!
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
You can now pass custom tabLabelStyle
:
<Tab.Navigator
tabLabelStyle={{
fontFamily: 'Avenir',
fontSize: 15,
}}
>
Full Changelog: v0.4.0...v0.5.0