Skip to content

Commit

Permalink
Expose rrc_root via prefab (#36166)
Browse files Browse the repository at this point in the history
Summary:
The `rrc_root` was not exposed via prefab. I'm adding it to make possible for Reanimated to integrate on top of React Native via prefab. Based on #35643.

## Changelog

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

Pull Request resolved: #36166

Reviewed By: cipolleschi

Differential Revision: D43304302

Pulled By: cortinico

fbshipit-source-id: 1c4a7013a33b48a8a7a445a78430630542420f4d
  • Loading branch information
tomekzaw authored and facebook-github-bot committed Feb 15, 2023
1 parent f76d4de commit 3418f65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ReactAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
new Pair("../ReactCommon/react/renderer/graphics/platform/cxx/", ""),
]
),
new PrefabPreprocessingEntry(
"rrc_root",
new Pair("../ReactCommon/react/renderer/components/root/", "react/renderer/components/root/")
),
new PrefabPreprocessingEntry(
"rrc_view",
new Pair("../ReactCommon/react/renderer/components/view/", "react/renderer/components/view/")
Expand Down Expand Up @@ -471,6 +475,7 @@ android {
"react_render_core",
"react_render_graphics",
"rrc_image",
"rrc_root",
"rrc_view",
"jsi",
"glog",
Expand Down Expand Up @@ -567,6 +572,9 @@ android {
rrc_image {
headers(new File(prefabHeadersDir, "rrc_image").absolutePath)
}
rrc_root {
headers(new File(prefabHeadersDir, "rrc_root").absolutePath)
}
rrc_view {
headers(new File(prefabHeadersDir, "rrc_view").absolutePath)
}
Expand Down

0 comments on commit 3418f65

Please sign in to comment.