Skip to content

Commit

Permalink
Merge pull request #48 from mzaien/fix-touchableGetInitialState-not-f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
JonnyBurger authored May 2, 2024
2 parents dace4ca + 72f8131 commit 32a7af0
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 32a7af0

Please sign in to comment.