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