Giter VIP home page Giter VIP logo

trendingtechnology / react-native-top-navbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindinventory/react-native-top-navbar

0.0 2.0 0.0 1.12 MB

This reactnative package provides custom header component for mobile apps. also providing utility method to change statusbar color.

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

License: MIT License

JavaScript 12.18% Starlark 2.85% Java 29.52% Ruby 3.53% Objective-C 21.38% TypeScript 30.54%

react-native-top-navbar's Introduction

React Native top-navbar

A @mindinventory/rn-top-navbar package is use to create custom navigation for react native apps. user can fully customize navbar. you can change the background color of statusbar. Navigation can contain component like icon, image, text.

navbar navbar_1 navbar_2 navbar_3 navbar_4

Installation

using npm:

npm install @mindinventory/rn-top-navbar

using yarn:

yarn add @mindinventory/rn-top-navbar

Supported platform

  • Android
  • Ios

Usage

import Header from '@mindinventory/rn-top-navbar';
...
<Header style={{ backgroundColor: '#009999' }} statusBarBackground='#008080' barStyle='light-content'>
    <Header.Left style={{ backgroundColor: '#009999', width: "15%" }}>
        <Icon name='arrow-left' style={{color: '#fff', fontSize: 18}} />
    </Header.Left>
    <Header.Body style={{ backgroundColor: '#009999', width: "70%" }}>
        <Text style={{color: '#fff'}}>Header Title</Text>
    </Header.Body>
    <Header.Right style={{ backgroundColor: '#009999', flexDirection: 'row', width: '15%' }}>
        <Icon name='bars' style={{color: '#fff', fontSize: 18}} />
    </Header.Right>
</Header>

Documentation

Navbar container props

Prop Type description
statusBarBackground string use for change background color of status bar.
barStyle string use for change content of status bar.
style style apply styles on navbar container.

Left container props

Prop Type description
style style apply styles on left container.

Body container props

Prop Type description
style style apply styles on body container.

Right container props

Prop Type description
style style apply styles on right container.

Changelog

Version: 0.0.1

  • Initial Build

LICENSE!

@mindinventory/rn-top-navbar is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.

react-native-top-navbar's People

Contributors

ankitpmi 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.