From 3418f65d88fa8be3473f757e932ecba1bbfce783 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Wed, 15 Feb 2023 06:04:52 -0800 Subject: [PATCH] Expose `rrc_root` via prefab (#36166) 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 https://github.com/facebook/react-native/issues/35643. ## Changelog [ANDROID] [CHANGED] - Expose `rrc_root` via prefab. Pull Request resolved: https://github.com/facebook/react-native/pull/36166 Reviewed By: cipolleschi Differential Revision: D43304302 Pulled By: cortinico fbshipit-source-id: 1c4a7013a33b48a8a7a445a78430630542420f4d --- ReactAndroid/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 6cfc6a248c90f0..56bacf0b9b7965 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -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/") @@ -471,6 +475,7 @@ android { "react_render_core", "react_render_graphics", "rrc_image", + "rrc_root", "rrc_view", "jsi", "glog", @@ -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) }