From f2808fc28f73abe2b5508a8291b79c84a05e7e8a Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Fri, 1 Mar 2024 17:08:52 +0100 Subject: [PATCH] Expose `rrc_text` via prefab --- packages/react-native/ReactAndroid/build.gradle.kts | 7 +++++++ .../ReactAndroid/cmake-utils/ReactNative-application.cmake | 2 ++ 2 files changed, 9 insertions(+) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 17d75f688275e6..1e8da9b051769e 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -125,6 +125,11 @@ val preparePrefab by "react/renderer/components/view/"), Pair("../ReactCommon/react/renderer/components/view/platform/android/", ""), )), + PrefabPreprocessingEntry( + "rrc_text", + Pair( + "../ReactCommon/react/renderer/components/text/", + "react/renderer/components/text/")), PrefabPreprocessingEntry( "rrc_legacyviewmanagerinterop", Pair( @@ -540,6 +545,7 @@ android { "rrc_image", "rrc_root", "rrc_view", + "rrc_text", "rrc_legacyviewmanagerinterop", "jsi", "glog", @@ -664,6 +670,7 @@ android { create("rrc_image") { headers = File(prefabHeadersDir, "rrc_image").absolutePath } create("rrc_root") { headers = File(prefabHeadersDir, "rrc_root").absolutePath } create("rrc_view") { headers = File(prefabHeadersDir, "rrc_view").absolutePath } + create("rrc_text") { headers = File(prefabHeadersDir, "rrc_text").absolutePath } create("rrc_legacyviewmanagerinterop") { headers = File(prefabHeadersDir, "rrc_legacyviewmanagerinterop").absolutePath } diff --git a/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake b/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake index 1ad0af8843dbc1..5aba63ac62b611 100644 --- a/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake +++ b/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake @@ -74,6 +74,7 @@ add_library(react_cxxreactpackage ALIAS ReactAndroid::react_cxxreactpackage) add_library(react_render_core ALIAS ReactAndroid::react_render_core) add_library(react_render_graphics ALIAS ReactAndroid::react_render_graphics) add_library(rrc_view ALIAS ReactAndroid::rrc_view) +add_library(rrc_text ALIAS ReactAndroid::rrc_text) add_library(jsi ALIAS ReactAndroid::jsi) add_library(glog ALIAS ReactAndroid::glog) add_library(fabricjni ALIAS ReactAndroid::fabricjni) @@ -108,6 +109,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME} react_render_mapbuffer # prefab ready rrc_image # prefab ready rrc_view # prefab ready + rrc_text # prefab ready rrc_legacyviewmanagerinterop # prefab ready runtimeexecutor # prefab ready turbomodulejsijni # prefab ready