1.0.0-beta.7.1 • Published 9 years ago
react-navigation-native-base v1.0.0-beta.7.1
react-navigation-native-base
NativeBase components for react-navigation
Implemented component shims:
<Header><TabBarBottom>
Coming soon™: <TabBarBottom> and <Drawer> shims.
Requirements
Setup
yarn add react-navigation-native-baseHeader
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).
1.0.0-beta.7.1
9 years ago
1.0.0-beta.7
9 years ago
1.0.0-beta.6.3
9 years ago
1.0.0-beta.6.1
9 years ago
1.0.0-beta.6
9 years ago