Skip to content

Commit 431fd89

Browse files
fix(expo): theme native iOS custom profile pages (#10272)
1 parent c0ba3bc commit 431fd89

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/expo-native-components": patch
3+
---
4+
5+
Apply the Clerk theme to custom user-profile page backgrounds and navigation bars on iOS.

‎packages/expo-native-components/ios/ClerkNativeBridge.swift‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,8 @@ private struct ClerkReactEmbeddedUserProfileCustomPage: View {
15571557
}
15581558

15591559
private struct ClerkReactUserProfileCustomPageContent: View {
1560+
@Environment(\.clerkTheme) private var theme
1561+
15601562
let path: String
15611563
let rows: [ClerkUserProfileCustomRowConfig]
15621564
let state: ClerkUserProfileCustomPageState
@@ -1570,8 +1572,11 @@ private struct ClerkReactUserProfileCustomPageContent: View {
15701572
}
15711573
}
15721574
.frame(maxWidth: .infinity, maxHeight: .infinity)
1575+
.background(theme.colors.muted)
15731576
.navigationTitle(userProfileCustomPageLabel(for: path, rows: rows))
15741577
.navigationBarTitleDisplayMode(.inline)
1578+
.preGlassSolidNavBar()
1579+
.background(theme.colors.background)
15751580
}
15761581
}
15771582

0 commit comments

Comments
 (0)