diff --git a/Libraries/ReactNative/ReactNativeBaseComponent.js b/Libraries/ReactNative/ReactNativeBaseComponent.js index ceb600aaaaa..19afca80362 100644 --- a/Libraries/ReactNative/ReactNativeBaseComponent.js +++ b/Libraries/ReactNative/ReactNativeBaseComponent.js @@ -185,7 +185,11 @@ ReactNativeBaseComponent.Mixin = { var tag = ReactNativeTagHandles.allocateTag(); if (__DEV__) { - deepFreezeAndThrowOnMutationInDev(this._currentElement.props); + for (var key in this.viewConfig.validAttributes) { + if (this._currentElement.props.hasOwnProperty(key)) { + deepFreezeAndThrowOnMutationInDev(this._currentElement.props[key]); + } + } } var updatePayload = ReactNativeAttributePayload.create(