适用于 React Native 的动画选项卡组件
The Animated Tab Bar for React Native
To run the example project, clone the repo, and run npm install from the Example directory first.
It is available through npm. To install just run
npm i fluidbottomnavigation-rnin your project directory. And then link it's native dependency with
react-native link react-native-view-overflowand you're done!
This component requires just 2 props. onPress function, that should handle rendering tabs and an array of values objects that contains title and icons for given tabs.
{ this._handlePress(tabIndex) }}
values={[
{ title: "News", icon: require("./assets/news.png") },
{ title: "Requests", icon: require("./assets/requests.png") },
{ title: "Events", icon: require("./assets/events.png") },
{ title: "Members", icon: require("./assets/members.png") },
{ title: "Account", icon: require("./assets/account.png") }
]}
/>Optionally you can pass tintColor prop, to adjust styling to your app.
FluidBottomNavigation Component is available under the MIT license. See the LICENSE file for more info.
暂无开放 Issues,或尚未同步最近议题。