1.0.4 • Published 4 years ago

@arelstone/react-native-animated-tabbar v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

@arelstone/react-native-animated-tabbar

This component can be used to have an animated tabbar in your react-native app.

This package leverages on react-native-svg and d3-shapes.

npm npm (scoped) GitHub issues GitHub pull requests

@arelstone/react-native-animated-tabbar

Install

npm i @arelstone/react-native-animated-tabbar
// or
yarn add @arelstone/react-native-animated-tabbar

For ios remember to run pod install in the ./ios-directory to apply react-native-svg.

Props

PropTypeDescription
tabs{ icon: ReactElement; activeIcon: ReactElement; onPress: () => void; label?: string;}An array of tabs that will be displayed
backgroundColorstring (optional)Set the backgroundColor of the tabbar and the circle. Default: white
circleAnimationDurationMsnumber (optional)Change the duration of the circle animation. Defualt: 100
circleContainerStyleStyleProp (optional)Apply some styling the the container that holds the circles
circleSizenumber (optional)The size of the circle. Default 40
circleStyleStyleProp (optional)Apply some styling for the circles
heightnumber (optional)Set the height of the tabbar. Default 64
textStyleStyleProp (optional)Apply styling to the label of each tab.

Credits

This component wouldn't have been able to do without the videos from William Candillon who was the inspiration for this component. I will reccoment all of his videos.