Skip to content

Commit 7e1b823

Browse files
committed
Merge pull request #37 from charpeni/fix-proptypes
Fix proptypes
2 parents 1d7a32b + 5b292f9 commit 7e1b823

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

components/NavBarContainer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { StyleSheet, View, PropTypes, Platform, BackAndroid } from 'react-native';
1+
import React, { StyleSheet, View, PropTypes, Platform, BackAndroid, Text } from 'react-native';
22

33
import NavBarContent from './NavBarContent';
44
import * as Styles from '../styles';
@@ -14,9 +14,9 @@ const propTypes = {
1414
navigator: PropTypes.object.isRequired,
1515
rightCorner: PropTypes.func,
1616
rightProps: PropTypes.object,
17-
style: PropTypes.any.isRequired,
17+
style: View.propTypes.style,
1818
titleProps: PropTypes.object,
19-
titleStyle: PropTypes.any.isRequired,
19+
titleStyle: Text.propTypes.style,
2020
toBack: PropTypes.func.isRequired,
2121
toRoute: PropTypes.func.isRequired,
2222
};

components/NavBarContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const propTypes = {
1414
rightProps: PropTypes.object,
1515
route: PropTypes.object.isRequired,
1616
titleProps: PropTypes.object,
17-
titleStyle: PropTypes.any.isRequired,
17+
titleStyle: Text.propTypes.style,
1818
willDisappear: PropTypes.bool,
1919
};
2020

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import React, {
55
View,
66
Platform,
77
PropTypes,
8+
Text,
89
} from 'react-native';
910
import { EventEmitter } from 'fbemitter';
1011

@@ -18,12 +19,13 @@ const propTypes = {
1819
borderColor: PropTypes.string,
1920
customAction: PropTypes.func,
2021
firstRoute: PropTypes.object.isRequired,
21-
headerStyle: PropTypes.any.isRequired,
22+
handleBackAndroid: PropTypes.bool,
23+
headerStyle: View.propTypes.style,
2224
hideNavigationBar: PropTypes.bool,
2325
noStatusBar: PropTypes.bool,
2426
rightCorner: PropTypes.func,
2527
statusBarColor: PropTypes.string,
26-
titleStyle: PropTypes.any.isRequired,
28+
titleStyle: Text.propTypes.style,
2729
};
2830

2931
const styles = StyleSheet.create({

0 commit comments

Comments
 (0)