mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use plugin architecture for Paragraph component
Summary: Leverage plugin infra for `Paragraph` Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D21404704 fbshipit-source-id: 7565014f1d88c4a0a47e0f10fdb3656b8276b1d0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
51740f8bb3
commit
03ccb633a0
@@ -38,6 +38,7 @@ Class<RCTComponentViewProtocol> RCTSwitchCls(void) __attribute__((used));
|
||||
Class<RCTComponentViewProtocol> RCTUnimplementedNativeViewCls(void) __attribute__((used));
|
||||
Class<RCTComponentViewProtocol> RCTModalHostViewCls(void) __attribute__((used));
|
||||
Class<RCTComponentViewProtocol> RCTImageCls(void) __attribute__((used));
|
||||
Class<RCTComponentViewProtocol> RCTParagraphCls(void) __attribute__((used));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ Class<RCTComponentViewProtocol> RCTFabricComponentsProvider(const char *name) {
|
||||
{"UnimplementedNativeView", RCTUnimplementedNativeViewCls},
|
||||
{"ModalHostView", RCTModalHostViewCls},
|
||||
{"Image", RCTImageCls},
|
||||
{"Paragraph", RCTParagraphCls},
|
||||
};
|
||||
|
||||
auto p = sFabricComponentsClassMap.find(name);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#import <react/utils/ManagedObjectWrapper.h>
|
||||
|
||||
#import "RCTConversions.h"
|
||||
#import "RCTFabricComponentsPlugins.h"
|
||||
|
||||
using namespace facebook::react;
|
||||
|
||||
@@ -169,3 +170,8 @@ using namespace facebook::react;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Class<RCTComponentViewProtocol> RCTParagraphCls(void)
|
||||
{
|
||||
return RCTParagraphComponentView.class;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user