From 623bbe6bd628bd8b9305f6b7e4469fdd382fb700 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Thu, 21 Mar 2024 11:37:13 -0700 Subject: [PATCH] Fix prefab header paths for `rrc_text` and `rrc_textinput` (#43591) Summary: - `rrc_textinput` at the moment points to a wrong subdirectory and needlessly adds a prefix path - `rrc_text` is missing headers for `attributedstring` which it depends on ## Changelog: [ANDROID] [FIXED] - Fixed prefab header paths for `rrc_text` and `rrc_textinput` Pull Request resolved: https://github.com/facebook/react-native/pull/43591 Reviewed By: fkgozali Differential Revision: D55199580 Pulled By: cortinico fbshipit-source-id: 85126c00943f82e908a52e05587661597761852e --- .../ReactAndroid/build.gradle.kts | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 0c7d24db69ec6e..711181509edee1 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -127,14 +127,24 @@ val preparePrefab by )), PrefabPreprocessingEntry( "rrc_text", - Pair( - "../ReactCommon/react/renderer/components/text/", - "react/renderer/components/text/")), + listOf( + Pair( + "../ReactCommon/react/renderer/components/text/", + "react/renderer/components/text/"), + Pair( + "../ReactCommon/react/renderer/attributedstring", + "react/renderer/attributedstring"), + )), PrefabPreprocessingEntry( "rrc_textinput", - Pair( - "../ReactCommon/react/renderer/components/textinput/", - "react/renderer/components/androidtextinput/")), + listOf( + Pair( + "../ReactCommon/react/renderer/components/textinput/", + "react/renderer/components/textinput/"), + Pair( + "../ReactCommon/react/renderer/components/textinput/platform/android/", + ""), + )), PrefabPreprocessingEntry( "rrc_legacyviewmanagerinterop", Pair(