Skip to content

Commit 0697f97

Browse files
committed
Fix index.js PropTypes
1 parent f2b93ae commit 0697f97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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
class Router extends React.Component {

0 commit comments

Comments
 (0)