a4acd8899f
Summary: Using Animated components like View and Image do not get created with __skipSetNativeProps_FOR_TESTS_ONLY = true since they get created before the jest mock can be applied to createAnimatedComponent. For these components mock getters to create versions that properly skip set native props. Jest tests that render these components get warnings the setNativeProps gets called even though using a testRenderer this should not happen. ## Changelog [Javascript] [Fixed] - Define Animated Components for react-native/jest/setup that properly skip setNativeProps Pull Request resolved: https://github.com/facebook/react-native/pull/25108 Differential Revision: D15779434 Pulled By: cpojer fbshipit-source-id: f39e21ed8e71c2c155297c791d3bf573909896d6 |
||
---|---|---|
.. | ||
MockNativeMethods.js | ||
assetFileTransformer.js | ||
mockComponent.js | ||
preprocessor.js | ||
renderer.js | ||
setup.js |