New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-nav-tabbar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-nav-tabbar

A tabbar component for React Native

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

react-native-tabbar

A tabbar component for React Native

Overview

tabbar using react-native,support android and ios,mobile bottom tab bar with more freedom.And what's more,solved the problem overflow parent hidden on the android,also it can be defined center item by itself.

Installation

Make sure that you are in your React Native project directory and run

npm install react-native-nav-tabbar --save

Basic usage

import TabBar from 'react-native-nav-tabbar';
<TabBar>
    <TabBar.Item
        icon={require('./images/Home.png')}
        selectedIcon={require('./images/HomeActive.png')}
        title="Home"
    >
        <View style={styles.textContent}>
            <Text style={{fontSize: 18}}>Home</Text>
        </View>
    </TabBar.Item>
    <TabBar.Item>
        <View style={styles.textContent}>
            <Text style={{fontSize: 18}}>Friends</Text>
        </View>
    </TabBar.Item>
    <TabBar.Item
        icon={require('./images/My.png')}
        selectedIcon={require('./images/MyActive.png')}
        title="Me"
    >
        <View style={styles.textContent}>
            <Text style={{fontSize: 18}}>Me</Text>
        </View>
  </TabBar.Item>
</TabBar>

Component props

propvaluerequired/optionaldescription
iconimage sourcerequiredthe icon when item is not focus
selectedIconimage sourcerequiredthe icon when item is focus
titlestringrequiredtitle of item

Examples

Keywords

react-component

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts