diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index f1b6c807874f95..72c53b080d137a 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -108,10 +108,12 @@ class TouchableText extends React.Component { responseHandlers: null, }; - static getDerivedStateFromProps(nextProps: Props, prevState: State): ?State { + static getDerivedStateFromProps( + nextProps: Props, + prevState: State, + ): $Shape | null { return prevState.responseHandlers == null && isTouchable(nextProps) ? { - ...prevState, responseHandlers: prevState.createResponderHandlers(), } : null;