Skip to content

Commit

Permalink
Expose rrc_text via prefab (#43275)
Browse files Browse the repository at this point in the history
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 #36166.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[ANDROID] [CHANGED] - Expose `rrc_text` via prefab.

Pull Request resolved: #43275

Reviewed By: cipolleschi

Differential Revision: D54536468

Pulled By: cortinico

fbshipit-source-id: 8c4ef983467bfc46930f10bf7bd95761c2d11788
  • Loading branch information
tomekzaw authored and facebook-github-bot committed Mar 6, 2024
1 parent e1702f4 commit 1c69100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-native/ReactAndroid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -545,6 +550,7 @@ android {
"rrc_image",
"rrc_root",
"rrc_view",
"rrc_text",
"rrc_textinput",
"rrc_legacyviewmanagerinterop",
"jsi",
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1c69100

Please sign in to comment.