diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js index 95b3787905c082..789f0394343b11 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js @@ -314,6 +314,10 @@ class TouchableOpacity extends React.Component { } } + componentDidMount(): void { + this.state.pressability.configure(this._createPressabilityConfig()); + } + componentWillUnmount(): void { this.state.pressability.reset(); } diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 8d6a4787640baa..63112e7c80abd5 100755 --- a/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -189,6 +189,10 @@ class TouchableWithoutFeedback extends React.Component { this.state.pressability.configure(createPressabilityConfig(this.props)); } + componentDidMount(): mixed { + this.state.pressability.configure(createPressabilityConfig(this.props)); + } + componentWillUnmount(): void { this.state.pressability.reset(); }