From f2713999de7e190e961d30676b36acce1e513fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kosmaty?= Date: Mon, 23 Oct 2023 10:29:40 +0200 Subject: [PATCH] [Android] Fix project don't compile when `nonTransitiveRClass=true` --- .../java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt b/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt index c0c9726e8d..a031f2f7c4 100644 --- a/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt +++ b/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt @@ -390,7 +390,7 @@ class ScreenStackHeaderConfig(context: Context) : ViewGroup(context) { // set primary color as background by default val tv = TypedValue() - if (context.theme.resolveAttribute(R.attr.colorPrimary, tv, true)) { + if (context.theme.resolveAttribute(android.R.attr.colorPrimary, tv, true)) { toolbar.setBackgroundColor(tv.data) } toolbar.clipChildren = false