Giter Club home page Giter Club logo

react-native-ios-tab-bar's Introduction

React Native iOS Native Tab Bar

example example-2

This package provides a custom component for integrating the native tab bar of iOS into your React Native app. With this package, you can achieve a seamless native tab navigation experience in the iOS version of your application.

Features

  • Integrate iOS's default tab bar into your React Native project.
  • Customize the appearance with easy configuration options.
  • Ability to customize icons and text for each tab.

Installation

  • Using NPM

    npm install react-native-ios-tab-bar

Usage

  1. Import the components into your project
    import { RNTabBar, RNTabBarOption } from "react-native-ios-tab-bar";
  2. Use the component in your project
        // Within your render function
        // Wrap options with RNTabBar
        <RNTabBar>  
    
          <RNTabBarOption>
              <Text>Option1</Text>  
          </RNTabBarOption>  
          
          <RNTabBarOption>  
              <Text>Option2</Text>  
          </RNTabBarOption>  
          
        </RNTabBar>

API

Note: None of the options are mandatory!

Tab Bar

Option Type
activeIndex number
onActiveIndexChange ( index: number ) => void
activeColor string
backgroundColor string
width number
height number
borderRadius number
padding number

Tab Bar Option

Option Type
index number
activeIndex number
onActiveChange ( isActive: boolean ) => void
onActive ( ) => void
onPress ( ) => void

Contributing

All contributions are welcome. If you would like to contribute to this project, feel free to submit pull requests. Prior to making significant changes, I recommend opening an issue to discuss the changes.

License

This project is licensed under the MIT license. For more information, refer to the LICENSE file.

react-native-ios-tab-bar's People

Contributors

szqii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-ios-tab-bar's Issues

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.