From 1c69100a2b822309c210733a33a57ebb560a1c71 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Wed, 6 Mar 2024 03:54:46 -0800 Subject: [PATCH] Expose `rrc_text` via prefab (#43275) Summary: The `rrc_text` was not exposed via prefab. I'm adding it to make possible for react-native-live-markdown to integrate on top of React Native via prefab. Based on https://github.com/facebook/react-native/issues/36166. ## Changelog: [ANDROID] [CHANGED] - Expose `rrc_text` via prefab. Pull Request resolved: https://github.com/facebook/react-native/pull/43275 Reviewed By: cipolleschi Differential Revision: D54536468 Pulled By: cortinico fbshipit-source-id: 8c4ef983467bfc46930f10bf7bd95761c2d11788 --- 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 38fdca228cb72e..fdd07aa4613247 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_textinput", Pair( @@ -545,6 +550,7 @@ android { "rrc_image", "rrc_root", "rrc_view", + "rrc_text", "rrc_textinput", "rrc_legacyviewmanagerinterop", "jsi", @@ -670,6 +676,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_textinput") { headers = File(prefabHeadersDir, "rrc_textinput").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 c27c8e58b4c2c7..0a1c9197a954e5 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(rrc_textinput ALIAS ReactAndroid::rrc_textinput) add_library(jsi ALIAS ReactAndroid::jsi) add_library(glog ALIAS ReactAndroid::glog) @@ -109,6 +110,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_textinput # prefab ready rrc_legacyviewmanagerinterop # prefab ready runtimeexecutor # prefab ready