š Animated bottom bar for react-navigation, react-native.
npm install rn-wave-bottom-bar-rtl-supportCustom animated bottom-tab-bar for react-native.
```
yarn add rn-wave-bottom-bar
or
``
yarn install rn-wave-bottom-bar --save
- React-Navigation v5 installed : https://reactnavigation.org/
`typescript
const Tab = createBottomTabNavigator();
const tabBarIcon = (name: string) => ({
focused,
color,
size,
}: {
focused: boolean;
color: string; // Defines fab icon color
size: number;
}) =>
activeTintColor: 'purple',
}}
tabBar={(props) => (
{...props}
isRtl={false}
/>
)}>
name="Home"
component={generateScreen('Home')}
/>
options={{tabBarIcon: tabBarIcon('meh')}}
component={generateScreen('Meh')}
/>
`
| Prop | Type | Description |
| :----------- | :---------------------: | :----------------------------------------: |
| color | string | Bottom Bar background color |Animated.SpringConfig
| springConfig | | Spring config for the animation |BottomTabBarProps` | TabBar props passed from the Tab Component |
| tabBarProps |
Thanks to Jm-Zion for this original component : https://github.com/Jm-Zion
Thanks to W.Candillon for the tuto : https://www.youtube.com/watch?v=6LsLgHeX500
Initial Design : https://uimovement.com/design/tab-bar-3/
ā Works well with mosts Devices and tested on iPad, IPhones, Android Devices.
ā Support device orientation.
ā
Support i18n (rtl/ltr direction).