Coder Social home page Coder Social logo

trendingtechnology / react-native-bottom-bar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wrathchaos/react-native-bottom-bar

0.0 2.0 0.0 3.4 MB

Fully customizable BottomBar for React Native.

Home Page: https://www.freakycoder.com

JavaScript 100.00%

react-native-bottom-bar's Introduction

React Native Bottom Bar

Fully customizable, unique shaped bottom bar component for React Native.

npm version npm downloads License: MIT

React Native Bottom Bar React Native Bottom Bar

Installation

Add the dependency:

npm i react-native-bottom-bar

Usage

<BottomBar
   style={style}
   shapeColor={shapeColor}
   mainIcon={mainIcon}
   mainIconColor={mainIconColor}
   mainIconGradient={mainIconGradient}
   mainIconComponent={mainIconComponent}
   miniButtonsColor={miniButtonsColor}
   firstIconComponent={firstIconComponent}
   secondIconComponent={secondIconComponent}
   thirdIconComponent={thirdIconComponent}
   fourthIconComponent={fourthIconComponent}
 />

Example Application

  • I just shared the example project on Expo, simply run on your device to check what it is: via Expo OR check the code, and yes! :) all of the images, screenshots are directly taken from the this example. Of course, you can simply clone the project and run the example on your own environment.

Configuration - Props

BottomBar:
Property Type Default Description
style style container use this to change the main BottomBar's style
shapeColor color #FBFBFD use this to change the unique shape's color
mainIcon component icon changes the main big button's icon type
mainIconColor color #FFFFFF changes the main big button's icon color
mainIconGradient array blue gradient changes the main big button's gradient color
mainIconComponent component MainIconButton(Gradient Icon based button) Make your own button on the main one
miniButtonsColor color null changes the mini buttons color with a single prop
firstIconComponent component MiniButton(simple icon button) renders your own component as a first button
secondIconComponent component MiniButton(simple icon button) renders your own component as a second button
thirdIconComponent component MiniButton(simple icon button) renders your own component as a third button
fourthIconComponent component MiniButton(simple icon button) renders your own component as a fourth button

Credits

Thank you RN Typography Team for the ShowcaseScreen :) It has a great design.

Author

FreakyCoder, [email protected]

License

React Native Bottom Bar Library is available under the MIT license. See the LICENSE file for more info.

react-native-bottom-bar's People

Contributors

wrathchaos avatar

Watchers

 avatar  avatar

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.