Skip to content

Commit 6440e35

Browse files
tomekzawhuntie
authored andcommitted
Expose react_render_textlayoutmanager via prefab (#43381)
Summary: The `react_render_textlayoutmanager` 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 `react_render_textlayoutmanager` via prefab. Pull Request resolved: #43381 Reviewed By: javache Differential Revision: D54676207 Pulled By: cortinico fbshipit-source-id: 90e3b90ff842250bf1e3abcc0c54f057b68a82fd
1 parent 10d6592 commit 6440e35

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/react-native/ReactAndroid/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ val preparePrefab by
148148
PrefabPreprocessingEntry(
149149
"react_render_mapbuffer",
150150
Pair("../ReactCommon/react/renderer/mapbuffer/", "react/renderer/mapbuffer/")),
151+
PrefabPreprocessingEntry(
152+
"react_render_textlayoutmanager",
153+
listOf(
154+
Pair(
155+
"../ReactCommon/react/renderer/textlayoutmanager/",
156+
"react/renderer/textlayoutmanager/"),
157+
Pair("../ReactCommon/react/renderer/textlayoutmanager/platform/android/", ""),
158+
)),
151159
PrefabPreprocessingEntry(
152160
"yoga",
153161
listOf(
@@ -555,6 +563,7 @@ android {
555563
"glog",
556564
"fabricjni",
557565
"react_render_mapbuffer",
566+
"react_render_textlayoutmanager",
558567
"yoga",
559568
"folly_runtime",
560569
"react_nativemodule_core",
@@ -685,6 +694,9 @@ android {
685694
create("react_render_mapbuffer") {
686695
headers = File(prefabHeadersDir, "react_render_mapbuffer").absolutePath
687696
}
697+
create("react_render_textlayoutmanager") {
698+
headers = File(prefabHeadersDir, "react_render_textlayoutmanager").absolutePath
699+
}
688700
create("yoga") { headers = File(prefabHeadersDir, "yoga").absolutePath }
689701
create("folly_runtime") { headers = File(prefabHeadersDir, "folly_runtime").absolutePath }
690702
create("react_nativemodule_core") {

packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ add_library(jsi ALIAS ReactAndroid::jsi)
8080
add_library(glog ALIAS ReactAndroid::glog)
8181
add_library(fabricjni ALIAS ReactAndroid::fabricjni)
8282
add_library(react_render_mapbuffer ALIAS ReactAndroid::react_render_mapbuffer)
83+
add_library(react_render_textlayoutmanager ALIAS ReactAndroid::react_render_textlayoutmanager)
8384
add_library(yoga ALIAS ReactAndroid::yoga)
8485
add_library(folly_runtime ALIAS ReactAndroid::folly_runtime)
8586
add_library(react_nativemodule_core ALIAS ReactAndroid::react_nativemodule_core)
@@ -108,6 +109,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
108109
react_render_graphics # prefab ready
109110
react_render_imagemanager # prefab ready
110111
react_render_mapbuffer # prefab ready
112+
react_render_textlayoutmanager # prefab ready
111113
rrc_image # prefab ready
112114
rrc_view # prefab ready
113115
rrc_text # prefab ready

0 commit comments

Comments
 (0)