A framework for building native applications using React
feat: add displayName to touchables (#29531)
Summary: Since TouchableHighlight and TouchableOpacity are being exported using `forwardRef`, it's messing up jest's snapshots and some matchers. This commit 4b935ae95f09e4a1eb1e5ac8089eb258222a0f8b fixed this for components being mocked on [setup.js](https://github.com/facebook/react-native/blob/master/jest/setup.js). However, these Touchables aren't being mocked. It resolves https://github.com/facebook/react-native/issues/27721 ## Changelog [General] [Added] - Add displayName to TouchableHighlight and TouchableOpacity Pull Request resolved: https://github.com/facebook/react-native/pull/29531 Test Plan: Check the new snapshots. Reviewed By: kacieb Differential Revision: D27485269 Pulled By: yungsters fbshipit-source-id: ba2082a4ae9f97ebe93ba92971d58c9195bdf26d
B
Bruno Castro committed
c4e40b81c01d061c189a7d28a4f56a588c3d1aea
Parent: 679f38f
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 4/1/2021, 12:36:02 AM