Ran yarn and fixed line-length lint issue

This commit is contained in:
Brian Vaughn
2017-03-24 19:59:05 -07:00
parent 1a29b4e2a3
commit cb585229bc
@@ -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;