Socket
Socket
Sign inDemoInstall

react-navigation-native-base

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-navigation-native-base

NativeBase Header component for react-navigation


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-navigation-native-base

NativeBase components for react-navigation

Implemented component shims:

  • <Header>
  • <TabBarBottom>

Coming soon™: <TabBarBottom> and <Drawer> shims.

Requirements

  • react-navigation
  • NativeBase

Setup

yarn add react-navigation-native-base

Header

Add the custom headerComponent into your StackNavigatorConfig:

import { Header } from 'react-navigation-native-base';

...

const AppNavigator = StackNavigator({
  // RouteConfigs...
}, {
  headerComponent: Header
});

That's it! Now your react-navigation header will have the look and feel of a NativeBase <Header>.

Click here for Header documentation

TabBar

Add the custom tabBarComponent into your TabNavigatorConfig:

import { TabBarBottom } from 'react-navigation-native-base';

...

const TabScreenNavigator = TabNavigator({
  // RouteConfigs...
}, {
  tabBarComponent: TabBarBottom, // TODO: TabBarTop support
  tabBarPosition: 'bottom'
});

That's it! Now your react-navigation TabBar will have the look and feel of a NativeBase <FooterTab> or <Tabs> (TODO).

Click here for TabBar documentation

FAQs

Last updated on 14 Mar 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc