Skip to content

Commit adc9e5b

Browse files
tomekzawfacebook-github-bot
authored andcommitted
Expose rrc_textinput via prefab (#43274)
Summary: The `rrc_textinput` 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_textinput` via prefab. Pull Request resolved: #43274 Reviewed By: cipolleschi Differential Revision: D54482657 Pulled By: cortinico fbshipit-source-id: ca7f4127f1808f841d88925238666e837de75bd0
1 parent 43c55e9 commit adc9e5b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ val preparePrefab by
125125
"react/renderer/components/view/"),
126126
Pair("../ReactCommon/react/renderer/components/view/platform/android/", ""),
127127
)),
128+
PrefabPreprocessingEntry(
129+
"rrc_textinput",
130+
Pair(
131+
"../ReactCommon/react/renderer/components/textinput/",
132+
"react/renderer/components/androidtextinput/")),
128133
PrefabPreprocessingEntry(
129134
"rrc_legacyviewmanagerinterop",
130135
Pair(
@@ -540,6 +545,7 @@ android {
540545
"rrc_image",
541546
"rrc_root",
542547
"rrc_view",
548+
"rrc_textinput",
543549
"rrc_legacyviewmanagerinterop",
544550
"jsi",
545551
"glog",
@@ -664,6 +670,7 @@ android {
664670
create("rrc_image") { headers = File(prefabHeadersDir, "rrc_image").absolutePath }
665671
create("rrc_root") { headers = File(prefabHeadersDir, "rrc_root").absolutePath }
666672
create("rrc_view") { headers = File(prefabHeadersDir, "rrc_view").absolutePath }
673+
create("rrc_textinput") { headers = File(prefabHeadersDir, "rrc_textinput").absolutePath }
667674
create("rrc_legacyviewmanagerinterop") {
668675
headers = File(prefabHeadersDir, "rrc_legacyviewmanagerinterop").absolutePath
669676
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ add_library(react_cxxreactpackage ALIAS ReactAndroid::react_cxxreactpackage)
7474
add_library(react_render_core ALIAS ReactAndroid::react_render_core)
7575
add_library(react_render_graphics ALIAS ReactAndroid::react_render_graphics)
7676
add_library(rrc_view ALIAS ReactAndroid::rrc_view)
77+
add_library(rrc_textinput ALIAS ReactAndroid::rrc_textinput)
7778
add_library(jsi ALIAS ReactAndroid::jsi)
7879
add_library(glog ALIAS ReactAndroid::glog)
7980
add_library(fabricjni ALIAS ReactAndroid::fabricjni)
@@ -108,6 +109,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
108109
react_render_mapbuffer # prefab ready
109110
rrc_image # prefab ready
110111
rrc_view # prefab ready
112+
rrc_textinput # prefab ready
111113
rrc_legacyviewmanagerinterop # prefab ready
112114
runtimeexecutor # prefab ready
113115
turbomodulejsijni # prefab ready

0 commit comments

Comments
 (0)