@umituz/react-native-settings 4.17.3 → 4.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-settings",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.5",
|
|
4
4
|
"description": "Settings management for React Native apps - user preferences, theme, language, notifications",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@react-navigation/stack": ">=6.0.0",
|
|
33
33
|
"@umituz/react-native-about": "latest",
|
|
34
34
|
"@umituz/react-native-appearance": "latest",
|
|
35
|
+
"@umituz/react-native-auth": "latest",
|
|
35
36
|
"@umituz/react-native-avatar": "latest",
|
|
36
37
|
"@umituz/react-native-faqs": "latest",
|
|
37
38
|
"@umituz/react-native-feedback": "latest",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@types/react": "~19.1.10",
|
|
55
56
|
"@umituz/react-native-about": "latest",
|
|
56
57
|
"@umituz/react-native-appearance": "latest",
|
|
58
|
+
"@umituz/react-native-auth": "latest",
|
|
57
59
|
"@umituz/react-native-avatar": "latest",
|
|
58
60
|
"@umituz/react-native-faqs": "latest",
|
|
59
61
|
"@umituz/react-native-feedback": "latest",
|
|
@@ -144,18 +144,20 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
|
|
|
144
144
|
]}
|
|
145
145
|
showsVerticalScrollIndicator={false}
|
|
146
146
|
>
|
|
147
|
-
{showUserProfile &&
|
|
147
|
+
{showUserProfile && (
|
|
148
148
|
<View style={styles.profileContainer}>
|
|
149
149
|
<ProfileSection
|
|
150
150
|
profile={{
|
|
151
|
-
displayName: userProfile
|
|
152
|
-
userId: userProfile
|
|
153
|
-
isAnonymous: userProfile
|
|
154
|
-
avatarUrl: userProfile
|
|
155
|
-
accountSettingsRoute: userProfile
|
|
151
|
+
displayName: userProfile?.displayName || t("settings.profile.guestName") || "Guest",
|
|
152
|
+
userId: userProfile?.userId,
|
|
153
|
+
isAnonymous: userProfile?.isAnonymous ?? true,
|
|
154
|
+
avatarUrl: userProfile?.avatarUrl,
|
|
155
|
+
accountSettingsRoute: userProfile?.accountSettingsRoute,
|
|
156
156
|
}}
|
|
157
|
-
onPress={userProfile
|
|
158
|
-
onSignIn={userProfile
|
|
157
|
+
onPress={userProfile?.onPress}
|
|
158
|
+
onSignIn={userProfile?.onPress}
|
|
159
|
+
signInText={t("auth.signIn") || "Sign In"}
|
|
160
|
+
anonymousText={t("settings.profile.anonymousName") || "Guest"}
|
|
159
161
|
/>
|
|
160
162
|
</View>
|
|
161
163
|
)}
|