React.PropTypes.oneOf accepts array as parameter, non-array given
Summary: React.PropTypes.oneOf accepts array as parameter, non-array given. this make the app throw a warning. Closes https://github.com/facebook/react-native/pull/7498 Differential Revision: D3285737 fbshipit-source-id: 3d86b4b36d696e054f9225d7e3a9eddf91477813
This commit is contained in:
parent
a95405f419
commit
df9a2b20a1
|
@ -121,7 +121,7 @@ const RefreshControl = React.createClass({
|
||||||
* Size of the refresh indicator, see RefreshControl.SIZE.
|
* Size of the refresh indicator, see RefreshControl.SIZE.
|
||||||
* @platform android
|
* @platform android
|
||||||
*/
|
*/
|
||||||
size: React.PropTypes.oneOf(RefreshLayoutConsts.SIZE.DEFAULT, RefreshLayoutConsts.SIZE.LARGE),
|
size: React.PropTypes.oneOf([RefreshLayoutConsts.SIZE.DEFAULT, RefreshLayoutConsts.SIZE.LARGE]),
|
||||||
/**
|
/**
|
||||||
* Progress view top offset
|
* Progress view top offset
|
||||||
* @platform android
|
* @platform android
|
||||||
|
|
Loading…
Reference in New Issue