From 72f813136494467b39394e21c503cdd360256e05 Mon Sep 17 00:00:00 2001 From: Abdullah Mzaien Date: Fri, 26 Apr 2024 13:14:52 +0300 Subject: [PATCH] fix: deleting touchableGetInitialState to fix rn 0.74 issue on ios --- README.md | 4 ++++ src/AnimateableText.tsx | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cb0408..b5a37de 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ A fork of React Native's `` component that supports Animated Values as te Animateable Text Version RN Version + + ^0.12.0 + ^0.74.0 + ^0.11.0 ^0.71.7 diff --git a/src/AnimateableText.tsx b/src/AnimateableText.tsx index f67188f..aef039b 100644 --- a/src/AnimateableText.tsx +++ b/src/AnimateableText.tsx @@ -107,7 +107,6 @@ class TouchableText extends React.Component { touchableHandleResponderTerminationRequest?: () => boolean; state = { - ...Touchable.Mixin.touchableGetInitialState(), isHighlighted: false, createResponderHandlers: this._createResponseHandlers.bind(this), responseHandlers: null, @@ -131,7 +130,6 @@ class TouchableText extends React.Component { if (isTouchable(props)) { props = { ...props, - ...this.state.responseHandlers, isHighlighted: this.state.isHighlighted, }; }