mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Integrate Fabric Text in RN Tester OSS
Summary: This diff integrates Text component into RN OSS changelog: [internal] internal Reviewed By: fkgozali Differential Revision: D23177414 fbshipit-source-id: 0a415f8dd8339b84465a7c8d73f3d8abd80fbecc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2d8fe89784
commit
50af304b3f
@@ -11,7 +11,7 @@ LOCAL_MODULE := fabricjni
|
||||
|
||||
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libreactconfig libyoga libglog libfb libfbjni libglog_init libfolly_json libfolly_futures libreact_render_mounting libreactnativeutilsjni libreact_utils libreact_render_debug libreact_render_graphics libreact_render_core libreact_render_mapbuffer react_render_componentregistry libreact_render_components_view libreact_render_components_view libreact_render_components_unimplementedview libreact_render_components_root libreact_render_components_scrollview libbetter libreact_render_attributedstring libreact_render_uimanager libreact_render_templateprocessor libreact_render_scheduler libreact_render_animations libreact_render_imagemanager libreact_render_textlayoutmanager libreact_render_viewmanagers
|
||||
LOCAL_SHARED_LIBRARIES := libreactconfig libyoga libglog libfb libfbjni libglog_init libfolly_json libfolly_futures libreact_render_mounting libreactnativeutilsjni libreact_utils libreact_render_debug libreact_render_graphics libreact_render_core libreact_render_mapbuffer react_render_componentregistry libreact_render_components_view libreact_render_components_unimplementedview libreact_render_components_root libreact_render_components_scrollview libbetter libreact_render_attributedstring libreact_render_uimanager libreact_render_templateprocessor libreact_render_scheduler libreact_render_animations libreact_render_imagemanager libreact_render_textlayoutmanager libreact_render_viewmanagers react_render_components_text
|
||||
|
||||
LOCAL_STATIC_LIBRARIES :=
|
||||
|
||||
@@ -42,6 +42,7 @@ $(call import-module,react/renderer/core)
|
||||
$(call import-module,react/renderer/components/root)
|
||||
$(call import-module,react/renderer/components/scrollview)
|
||||
$(call import-module,react/renderer/components/unimplementedview)
|
||||
$(call import-module,react/renderer/components/text)
|
||||
$(call import-module,react/renderer/components/view)
|
||||
$(call import-module,react/renderer/debug)
|
||||
$(call import-module,react/renderer/graphics)
|
||||
@@ -53,4 +54,4 @@ $(call import-module,react/renderer/templateprocessor)
|
||||
$(call import-module,react/renderer/textlayoutmanager)
|
||||
$(call import-module,react/renderer/uimanager)
|
||||
|
||||
#$(call import-module,react/fabric/viewmanagers/jni)
|
||||
# $(call import-module,react/fabric/viewmanagers/jni)
|
||||
|
||||
@@ -45,5 +45,6 @@ rn_xplat_cxx_library(
|
||||
# TODO T71316899: Extract CoreComponentsRegistry out of this module
|
||||
# The following dependencies are required by CoreComponentsRegistry
|
||||
"//xplat/js/react-native-github:generated_components-rncore",
|
||||
react_native_xplat_target("react/renderer/components/text:text"),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
|
||||
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
||||
#include <react/renderer/components/rncore/ComponentDescriptors.h>
|
||||
#include <react/renderer/components/text/ParagraphComponentDescriptor.h>
|
||||
#include <react/renderer/components/text/RawTextComponentDescriptor.h>
|
||||
#include <react/renderer/components/text/TextComponentDescriptor.h>
|
||||
#include <react/renderer/components/view/ViewComponentDescriptor.h>
|
||||
|
||||
namespace facebook {
|
||||
@@ -30,6 +33,12 @@ CoreComponentsRegistry::sharedProviderRegistry() {
|
||||
|
||||
providerRegistry->add(
|
||||
concreteComponentDescriptorProvider<ViewComponentDescriptor>());
|
||||
providerRegistry->add(
|
||||
concreteComponentDescriptorProvider<TextComponentDescriptor>());
|
||||
providerRegistry->add(
|
||||
concreteComponentDescriptorProvider<RawTextComponentDescriptor>());
|
||||
providerRegistry->add(
|
||||
concreteComponentDescriptorProvider<ParagraphComponentDescriptor>());
|
||||
|
||||
return providerRegistry;
|
||||
}();
|
||||
@@ -44,7 +53,6 @@ CoreComponentsRegistry::initHybrid(
|
||||
auto instance = makeCxxInstance(delegate);
|
||||
|
||||
// TODO T69453179: Codegen this file
|
||||
|
||||
auto buildRegistryFunction =
|
||||
[](EventDispatcher::Weak const &eventDispatcher,
|
||||
ContextContainer::Shared const &contextContainer)
|
||||
|
||||
Reference in New Issue
Block a user