mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Upgrade Flow to v0.56.0
Reviewed By: calebmer Differential Revision: D5958715 fbshipit-source-id: 7feda03a9540e69bf8d9b4eb89720248ff43294f
This commit is contained in:
committed by
Facebook Github Bot
parent
f368287347
commit
a16ef18a80
@@ -32,6 +32,12 @@ class StyleSheetValidation {
|
||||
var message1 = '"' + prop + '" is not a valid style property.';
|
||||
var message2 = '\nValid style props: ' +
|
||||
JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' ');
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an
|
||||
* error found when Flow v0.56 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error found when Flow v0.56 was deployed. To see
|
||||
* the error delete this comment and run Flow. */
|
||||
styleError(message1, style, caller, message2);
|
||||
}
|
||||
var error = allStylePropTypes[prop](
|
||||
@@ -43,6 +49,12 @@ class StyleSheetValidation {
|
||||
ReactPropTypesSecret,
|
||||
);
|
||||
if (error) {
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an
|
||||
* error found when Flow v0.56 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error found when Flow v0.56 was deployed. To see
|
||||
* the error delete this comment and run Flow. */
|
||||
styleError(error.message, style, caller);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user