Skip to content

Commit

Permalink
fix: deleting touchableGetInitialState to fix rn 0.74 issue on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaien committed Apr 26, 2024
1 parent dace4ca commit 72f8131
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ A fork of React Native's `<Text/>` component that supports Animated Values as te
<th>Animateable Text Version</th>
<th>RN Version</th>
</tr>
<tr>
<td> ^0.12.0</td>
<td> ^0.74.0</td>
</tr>
<tr>
<td> ^0.11.0</td>
<td> ^0.71.7</td>
Expand Down
2 changes: 0 additions & 2 deletions src/AnimateableText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class TouchableText extends React.Component<AnimateableTextProps, State> {
touchableHandleResponderTerminationRequest?: () => boolean;

state = {
...Touchable.Mixin.touchableGetInitialState(),
isHighlighted: false,
createResponderHandlers: this._createResponseHandlers.bind(this),
responseHandlers: null,
Expand All @@ -131,7 +130,6 @@ class TouchableText extends React.Component<AnimateableTextProps, State> {
if (isTouchable(props)) {
props = {
...props,
...this.state.responseHandlers,
isHighlighted: this.state.isHighlighted,
};
}
Expand Down

0 comments on commit 72f8131

Please sign in to comment.