Skip to content

Commit d3f397c

Browse files
fix: TouchableOpacity excessive number of pending callbacks
1 parent e047eed commit d3f397c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Libraries/Components/Touchable/TouchableOpacity.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,8 @@ class TouchableOpacity extends React.Component<Props, State> {
301301
this.state.pressability.configure(this._createPressabilityConfig());
302302
if (
303303
this.props.disabled !== prevProps.disabled ||
304-
(flattenStyle(prevProps.style)?.opacity !==
305-
flattenStyle(this.props.style)?.opacity) !==
306-
undefined
304+
flattenStyle(prevProps.style)?.opacity !==
305+
flattenStyle(this.props.style)?.opacity
307306
) {
308307
this._opacityInactive(250);
309308
}

0 commit comments

Comments
 (0)