diff --git a/packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js b/packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js index 5c812f1d9bfc5..0d4388335a0c6 100644 --- a/packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js +++ b/packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js @@ -295,14 +295,8 @@ function diffProperties( nextProp = nextProps[propKey]; if (typeof nextProp === 'function') { - if (typeof attributeConfig === 'object') { - // When the config for a function prop has a custom process method - // we don't assume its a regular event handler, but use the process method: - nextProp = attributeConfig.process(nextProp); - if (typeof prevProp === 'function') { - prevProp = attributeConfig.process(prevProp); - } - } else { + const attributeConfigHasProcess = typeof attributeConfig === 'object' && typeof attributeConfig.process === 'function'; + if (!attributeConfigHasProcess) { // functions are converted to booleans as markers that the associated // events should be sent from native. nextProp = (true: any);