react-native-tab-navigator
Advanced tools
Comparing version 0.2.13 to 0.2.14
{ | ||
"name": "react-native-tab-navigator", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "A tab bar that switches between scenes, written in JS for cross-platform support", | ||
@@ -5,0 +5,0 @@ "main": "TabNavigator.js", |
@@ -12,3 +12,11 @@ # TabNavigator [![Slack](http://slack.exponentjs.com/badge.svg)](http://slack.exponentjs.com) | ||
Import TabNavigator as a JavaScript module: | ||
```js | ||
import TabNavigator from 'react-native-tab-navigator'; | ||
``` | ||
This is an example of how to use the component and some of the commonly used props that it supports: | ||
```js | ||
<TabNavigator> | ||
@@ -15,0 +23,0 @@ <TabNavigator.Item |
@@ -19,3 +19,4 @@ 'use strict'; | ||
onPress: PropTypes.func, | ||
hidesTabTouch: PropTypes.bool | ||
hidesTabTouch: PropTypes.bool, | ||
allowFontScaling: PropTypes.bool | ||
}; | ||
@@ -37,2 +38,3 @@ | ||
numberOfLines={1} | ||
allowFontScaling={!!this.props.allowFontScaling} | ||
style={[styles.title, this.props.titleStyle]}> | ||
@@ -39,0 +41,0 @@ {title} |
@@ -114,2 +114,3 @@ 'use strict'; | ||
title={item.props.title} | ||
allowFontScaling={item.props.allowFontScaling} | ||
titleStyle={[ | ||
@@ -116,0 +117,0 @@ item.props.titleStyle, |
@@ -20,2 +20,3 @@ 'use strict'; | ||
onPress: PropTypes.func, | ||
allowFontScaling: PropTypes.bool | ||
}; | ||
@@ -22,0 +23,0 @@ |
14259
398
55