@samitouri / QOS-React / commits / c043c1e7d9

Remove View.propTypes RN deprecation workaround (#10683)

Dan Abramov committed Sep 14, 2017 at 19:46 UTC c043c1e7d9ee4aa224454530d91152cbb9764125
1 file changed +1 -10
src/isomorphic/classic/element/ReactElementValidator.js
+1 -10
@@ -213,16 +213,7 @@ function validatePropTypes(element) {
213 return;
214 }
215 var name = componentClass.displayName || componentClass.name;
216 -
217 - // ReactNative `View.propTypes` have been deprecated in favor of `ViewPropTypes`.
218 - // In their place a temporary getter has been added with a deprecated warning message.
219 - // Avoid triggering that warning during validation using the temporary workaround,
220 - // __propTypesSecretDontUseThesePlease.
221 - // TODO (bvaughn) Revert this particular change any time after April 1 ReactNative tag.
222 - var propTypes = typeof componentClass.__propTypesSecretDontUseThesePlease ===
223 - 'object'
224 - ? componentClass.__propTypesSecretDontUseThesePlease
225 - : componentClass.propTypes;
216 + var propTypes = componentClass.propTypes;
217
218 if (propTypes) {
219 currentlyValidatingElement = element;