Skip to content

[TimerMixin] Remove TimerMixin from TouchableWithoutFeedback - #21493

Closed
Thomas0c wants to merge 2 commits into
react:masterfrom
Thomas0c:fix/rm-timermixin-TouchableWithoutFeedback
Closed

Thomas0c wants to merge 2 commits into
react:masterfrom
Thomas0c:fix/rm-timermixin-TouchableWithoutFeedback

Conversation

@Thomas0c

@Thomas0c Thomas0c commented Oct 4, 2018 •

Copy link
Copy Markdown
Contributor

Related to #21485.
Removed TimerMixin from the TouchableWithoutFeedback component since it is currently not used.
Added tests cases for TouchableWithoutFeedback to check for any runtime issues.

Test Plan:

Ran:

  • npm run prettier

Additionally ran the following scripts with no errors:

  • npm run flow-check-ios
  • npm run flow-check-android

Following the removal of TimerMixin, the TouchableWithoutFeedback component has been tested during runtime using RNTester to surface any runtime issues. The change was tested on both iOS and Android with no obvious errors.

RNTester steps:

  • Run RNTester.
  • Navigate to “<Touchable*> and onPress”
  • Second box (in view) provides a simple test to verify that <TouchableWithoutFeedback /> works as expected:

General behavior for TouchableWithoutFeedback:
screenshot 2018-10-04 at 23 17 43

Added tests for disabled state for TouchableWithoutFeedback to mirror tests for other Touchable* types:
screenshot 2018-10-04 at 23 17 50

Release Notes:

[GENERAL] [ENHANCEMENT] [Libraries/Components/Touchable/TouchableWithoutFeedback.js] - remove TimerMixin dependency
[GENERAL] [ENHANCEMENT] [RNTester/js/TouchableExample.js] - Add TouchableWithoutFeedback test cases.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 4, 2018
@Thomas0c Thomas0c changed the title Fix/rm timermixin touchable without feedback Remove TimerMixin from TouchableWithoutFeedback Oct 4, 2018
@elicwhite
elicwhite requested review from RSNara and elicwhite October 5, 2018 00:43

@RSNara RSNara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@RSNara RSNara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSNara has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hramos hramos changed the title Remove TimerMixin from TouchableWithoutFeedback [TimerMixin] Remove TimerMixin from TouchableWithoutFeedback Oct 5, 2018
@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Oct 5, 2018
@react-native-bot

Copy link
Copy Markdown
Collaborator

@Thomas0c merged commit 6c20017 into facebook:master.

@react react locked as resolved and limited conversation to collaborators Oct 5, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 5, 2018
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Apr 14, 2019
Summary:
Related to #21485.
Removed `TimerMixin` from the `TouchableWithoutFeedback` component since it is currently not used.
Added tests cases for `TouchableWithoutFeedback` to check for any runtime issues.
Pull Request resolved: react/react-native#21493

Differential Revision: D10219098

Pulled By: RSNara

fbshipit-source-id: d9517b2bd5b72b0450fa864f3556673ae3181552
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
Related to react#21485.
Removed `TimerMixin` from the `TouchableWithoutFeedback` component since it is currently not used.
Added tests cases for `TouchableWithoutFeedback` to check for any runtime issues.
Pull Request resolved: react#21493

Differential Revision: D10219098

Pulled By: RSNara

fbshipit-source-id: d9517b2bd5b72b0450fa864f3556673ae3181552
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants