@umituz/react-native-auth 4.1.0 → 4.1.1

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-auth",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design with dependency injection, configurable validation, and comprehensive error handling.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -20,6 +20,7 @@ export interface AccountScreenConfig {
20
20
  onEditProfile?: () => void;
21
21
  onSignIn?: () => void;
22
22
  title?: string;
23
+ PasswordPromptComponent?: React.ReactNode;
23
24
  }
24
25
 
25
26
  export interface AccountScreenProps {
@@ -30,43 +31,46 @@ export const AccountScreen: React.FC<AccountScreenProps> = ({ config }) => {
30
31
  const tokens = useAppDesignTokens();
31
32
 
32
33
  return (
33
- <ScreenLayout
34
- scrollable={true}
35
- edges={['top', 'bottom']}
36
- backgroundColor={tokens.colors.backgroundPrimary}
37
- contentContainerStyle={styles.content}
38
- >
39
- <ProfileSection
40
- profile={config.profile}
41
- onSignIn={config.isAnonymous ? config.onSignIn : undefined}
42
- signInText="Sign In"
43
- />
34
+ <>
35
+ <ScreenLayout
36
+ scrollable={true}
37
+ edges={['top', 'bottom']}
38
+ backgroundColor={tokens.colors.backgroundPrimary}
39
+ contentContainerStyle={styles.content}
40
+ >
41
+ <ProfileSection
42
+ profile={config.profile}
43
+ onSignIn={config.isAnonymous ? config.onSignIn : undefined}
44
+ signInText="Sign In"
45
+ />
44
46
 
45
- {/* Edit Profile Option */}
46
- {!config.isAnonymous && config.onEditProfile && config.editProfileText && (
47
- <>
48
- <View style={styles.divider} />
49
- <TouchableOpacity
50
- style={[actionButtonStyle.container, { borderColor: tokens.colors.border }]}
51
- onPress={config.onEditProfile}
52
- activeOpacity={0.7}
53
- >
54
- <AtomicIcon name="person-outline" size="md" customColor={tokens.colors.textPrimary} />
55
- <AtomicText style={[actionButtonStyle.text, { color: tokens.colors.textPrimary }]}>
56
- {config.editProfileText}
57
- </AtomicText>
58
- <AtomicIcon name="chevron-forward" size="sm" color="secondary" />
59
- </TouchableOpacity>
60
- </>
61
- )}
47
+ {/* Edit Profile Option */}
48
+ {!config.isAnonymous && config.onEditProfile && config.editProfileText && (
49
+ <>
50
+ <View style={styles.divider} />
51
+ <TouchableOpacity
52
+ style={[actionButtonStyle.container, { borderColor: tokens.colors.border }]}
53
+ onPress={config.onEditProfile}
54
+ activeOpacity={0.7}
55
+ >
56
+ <AtomicIcon name="person-outline" size="md" customColor={tokens.colors.textPrimary} />
57
+ <AtomicText style={[actionButtonStyle.text, { color: tokens.colors.textPrimary }]}>
58
+ {config.editProfileText}
59
+ </AtomicText>
60
+ <AtomicIcon name="chevron-forward" size="sm" color="secondary" />
61
+ </TouchableOpacity>
62
+ </>
63
+ )}
62
64
 
63
- {!config.isAnonymous && config.accountActions && (
64
- <>
65
- <View style={styles.divider} />
66
- <AccountActions config={config.accountActions} />
67
- </>
68
- )}
69
- </ScreenLayout>
65
+ {!config.isAnonymous && config.accountActions && (
66
+ <>
67
+ <View style={styles.divider} />
68
+ <AccountActions config={config.accountActions} />
69
+ </>
70
+ )}
71
+ </ScreenLayout>
72
+ {config.PasswordPromptComponent}
73
+ </>
70
74
  );
71
75
  };
72
76