From cb585229bcc76ce35ea6d068c2510a86438798ea Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Fri, 24 Mar 2017 19:59:05 -0700 Subject: [PATCH] Ran yarn and fixed line-length lint issue --- src/isomorphic/classic/element/ReactElementValidator.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/isomorphic/classic/element/ReactElementValidator.js b/src/isomorphic/classic/element/ReactElementValidator.js index ab606a5a41..3244333383 100644 --- a/src/isomorphic/classic/element/ReactElementValidator.js +++ b/src/isomorphic/classic/element/ReactElementValidator.js @@ -184,9 +184,11 @@ function validatePropTypes(element) { // ReactNative `View.propTypes` have been deprecated in favor of `ViewPropTypes`. // In their place a temporary getter has been added with a deprecated warning message. - // Avoid triggering that warning during validation using the temporary workaround, __propTypesSecretDontUseThesePlease. - // TODO (bvaughn) Revert this particular change any time after April 1 ReactNative RC is tagged. - var propTypes = typeof componentClass.__propTypesSecretDontUseThesePlease === 'object' + // Avoid triggering that warning during validation using the temporary workaround, + // __propTypesSecretDontUseThesePlease. + // TODO (bvaughn) Revert this particular change any time after April 1 ReactNative tag. + var propTypes = typeof componentClass.__propTypesSecretDontUseThesePlease === + 'object' ? componentClass.__propTypesSecretDontUseThesePlease : componentClass.propTypes;