-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary:Set `Touchable.TOUCH_TARGET_DEBUG` to see colored borders/text to all touchables. Different touchable types are color-coded differently. If there is `hitSlop`, it will be rendered with an extra view with a dashed border of the same color (not visible on Android because `overflow: 'hidden'`). `Text` with `onPress` directly set is just colored. Added some extra checks to `TouchableWithoutFeedback` since it could silently break if the child is not a native component. Also added better error output for `ensureComponentIsNative` so it's easier to track down issues. I really wish there was a cleaner way to get the component and owner names consistently, it would help make good debug messages way easier to write. Reviewed By: ericvicenti Differential Revision: D3149865 fb-gh-sync-id: 602fc3474ae7636e32af529eb7ac52ac5b858030 fbshipit-source-id: 602fc3474ae7636e32af529eb7ac52ac5b858030
- Loading branch information
Showing
8 changed files
with
106 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters