Giter Site home page Giter Site logo

10clouds / fluidbottomnavigation-rn Goto Github PK

View Code? Open in Web Editor NEW
193.0 21.0 44.0 1.26 MB

Animated Tab Bar Component for React Native

License: MIT License

JavaScript 53.58% Python 11.25% Java 9.72% Objective-C 25.45%
react-native component tabbar ui animated

fluidbottomnavigation-rn's Introduction

FluidBottomNavigation for React Native

NpmVersion NpmLicense

The Animated Tab Bar for React Native

Sample

Example

To run the example project, clone the repo, and run npm install from the Example directory first.

Installation

It is available through npm. To install just run

npm i fluidbottomnavigation-rn

in your project directory. And then link it's native dependency with

react-native link react-native-view-overflow

and you're done!

Usage

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.

<TabBar
  onPress={(tabIndex) => { 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") }
  ]}
/>

Customization

Optionally you can pass tintColor prop, to adjust styling to your app.

Author

Patryk Mierzejewski

License

FluidBottomNavigation Component is available under the MIT license. See the LICENSE file for more info.

fluidbottomnavigation-rn's People

Contributors

pmierzejewski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fluidbottomnavigation-rn's Issues

work with react-navigation

Hi. I think this animation is amazing! Any chance you could post an example with it being used with react-navigation?

Item's bubble quality isn't good ! (pixel pixel)

I have custom the tab bar with my own icons and titles but same as picture the bubble isn't clear ; pixels of blue circle are obvious 🙄🤔 what should I do make them like library's preview ?

fluid

I have use png icons and here is my code :
`
<TabBar
onPress={tabIndex => {
this.setState({
currentPage: tabIndex
})
}}
values={[
{ title: "منو", icon: require("../../assets/png/menu_stork.png") },
{ title: "گروه ها", icon: require("../../assets/png/group_stork.png") },
{ title: "پیام ها", icon: require("../../assets/png/message_stork.png") },
{ title: "درایو", icon: require("../../assets/png/drive_stork.png") },
{ title: "خانه", icon: require("../../assets/png/home_stork.png") }
]}
/>

`

proper way to render page

Hi I am trying to implement this within my app, I got the tabs to show but how do I link the pages to the tab. I pretty new to react-native so please forgive me if there is a simple solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.