From d3f397c3ac572dba0a2a776499e83488e5b22657 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Thu, 17 Nov 2022 19:15:24 -0300 Subject: [PATCH] fix: TouchableOpacity excessive number of pending callbacks --- Libraries/Components/Touchable/TouchableOpacity.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index 2aef4e824f10a5..cc18e8ecd0db23 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -301,9 +301,8 @@ class TouchableOpacity extends React.Component { this.state.pressability.configure(this._createPressabilityConfig()); if ( this.props.disabled !== prevProps.disabled || - (flattenStyle(prevProps.style)?.opacity !== - flattenStyle(this.props.style)?.opacity) !== - undefined + flattenStyle(prevProps.style)?.opacity !== + flattenStyle(this.props.style)?.opacity ) { this._opacityInactive(250); }