diff --git a/Libraries/ReactNative/verifyPropTypes.js b/Libraries/ReactNative/verifyPropTypes.js index 30d29f200adb60..7791899d298b2f 100644 --- a/Libraries/ReactNative/verifyPropTypes.js +++ b/Libraries/ReactNative/verifyPropTypes.js @@ -17,7 +17,7 @@ export type ComponentInterface = | { name?: string, displayName?: string, - propTypes: Object, + propTypes?: Object, }; function verifyPropTypes( @@ -41,7 +41,7 @@ function verifyPropTypes( componentInterface.propTypes; if (!propTypes) { - throw new Error('`' + componentName + '` has no propTypes defined`'); + return; } var nativeProps = viewConfig.NativeProps;