Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 37f676c

Browse files
committed
Merge pull request #62 from feyy/master
Fix StatusBar backgroundColor propTypes declaration
2 parents 51020a1 + b8b196a commit 37f676c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/StatusBar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* https://github.com/facebook/react-native/blob/master/Libraries/Components/StatusBar/StatusBar.js
33
*/
44
import React from 'react';
5+
import ColorPropType from '../propTypes/ColorPropType';
6+
57

68
let _backgroundColor = '';
79
let _barStyle = {};
@@ -13,7 +15,7 @@ const StatusBar = React.createClass({
1315
propTypes: {
1416
animated: React.PropTypes.bool,
1517
barStyle: React.PropTypes.oneOf(['default', 'light-content']),
16-
backgroundColor: React.PropTypes.bool,
18+
backgroundColor: ColorPropType,
1719
hidden: React.PropTypes.bool,
1820
networkActivityIndicatorVisible: React.PropTypes.bool,
1921
showHideTransition: React.PropTypes.oneOf(['fade', 'slide']),

0 commit comments

Comments
 (0)