react-native-macos/jest
Tim Yung 6a547c6c57 RN: Create `NativeComponentRegistry`
Summary:
Creates `NativeComponentRegistry` which makes native component initialization more declarative and configurable through an optionally configurable provider.

The next diff converts `ScrollView` to use this new abstraction as a demonstration. The plan would be to use this to replace all current manual call sites of `registerGeneratedViewConfig`, and then the ones generated via the Babel plugin.

Migrating to this will not change any production behavior, but it will enable verification of `ViewConfig` in development.

Changelog:
[Internal]

Reviewed By: JoshuaGross

Differential Revision: D25084468

fbshipit-source-id: 9c758ddc279bf937a401a868a066907a94098f37
2020-11-19 10:55:50 -08:00
..
MockNativeMethods.js change jest native method mocks to jest functions (#24337) 2019-04-07 11:54:48 -07:00
assetFileTransformer.js Remove `fbjs-scripts` in favor of `@jest/create-cache-key-function` 2020-10-06 18:22:58 -07:00
mockComponent.js Correctly mock all components by setting the displayName 2020-07-28 13:09:06 -07:00
mockNativeComponent.js RN: Create `NativeComponentRegistry` 2020-11-19 10:55:50 -08:00
mockScrollView.js Make ScrollView use ForwardRef 2020-03-26 16:53:46 -07:00
preprocessor.js Remove `fbjs-scripts` in favor of `@jest/create-cache-key-function` 2020-10-06 18:22:58 -07:00
renderer.js Switch to react-shallow-renderer 2020-07-10 14:06:38 -07:00
setup.js RN: Create `NativeComponentRegistry` 2020-11-19 10:55:50 -08:00