mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: ComponentDescriptorProvider represents unified way to create a particular descriptor. Now all ComponentViews (which support RCTComponentViewProtocol) expose a `ComponentDescriptorProvider` which will allow creating and registering ComponentDescriptor instances for all visual components automatically as a part of ComponentView registration process. Don't panic, everything is still being as explicit as it always was, no magic involved; we just will have only one registration step instead of two parallel. That also opens a way to register components on the fly. Reviewed By: JoshuaGross Differential Revision: D14963488 fbshipit-source-id: 9e9d9166fabaf7b30b35b8647faa6e3a19cd2435