mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix React Native open source
Reviewed By: hramos, TheSavior Differential Revision: D5728356 fbshipit-source-id: fb751d67c16ba9273de93d9b6d5acd65b1555dca
This commit is contained in:
committed by
Facebook Github Bot
parent
2d0fe109d7
commit
63f990121a
@@ -43,10 +43,9 @@ function verifyPropTypes(
|
||||
|
||||
if (!propTypes) {
|
||||
throw new Error(
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error when upgrading Flow's support for React. Common errors found
|
||||
* when upgrading Flow's React support are documented at
|
||||
* https://fburl.com/eq7bs81w */
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error when upgrading Flow's support for React.
|
||||
* To see the error delete this comment and run Flow. */
|
||||
'`' + componentName + '` has no propTypes defined`'
|
||||
);
|
||||
}
|
||||
@@ -58,17 +57,15 @@ function verifyPropTypes(
|
||||
(!nativePropsToIgnore || !nativePropsToIgnore[prop])) {
|
||||
var message;
|
||||
if (propTypes.hasOwnProperty(prop)) {
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error when upgrading Flow's support for React. Common errors found
|
||||
* when upgrading Flow's React support are documented at
|
||||
* https://fburl.com/eq7bs81w */
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error when upgrading Flow's support for React.
|
||||
* To see the error delete this comment and run Flow. */
|
||||
message = '`' + componentName + '` has incorrectly defined propType for native prop `' +
|
||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' + nativeProps[prop];
|
||||
} else {
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error when upgrading Flow's support for React. Common errors found
|
||||
* when upgrading Flow's React support are documented at
|
||||
* https://fburl.com/eq7bs81w */
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error when upgrading Flow's support for React.
|
||||
* To see the error delete this comment and run Flow. */
|
||||
message = '`' + componentName + '` has no propType for native prop `' +
|
||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' +
|
||||
nativeProps[prop] + '`';
|
||||
|
||||
Reference in New Issue
Block a user