diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js index 6f86c40f369d..7a41f71c13ad 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js @@ -174,9 +174,9 @@ class TouchableOpacity extends React.Component< } _getChildStyleOpacityWithDefault(): number { - // $FlowFixMe[underconstrained-implicit-instantiation] - // $FlowFixMe[prop-missing] - const opacity = flattenStyle(this.props.style)?.opacity; + const opacity = flattenStyle>( + this.props.style, + )?.opacity; return typeof opacity === 'number' ? opacity : 1; }