@umituz/react-native-auth 2.7.5 → 2.7.7
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": "2.7.
|
|
3
|
+
"version": "2.7.7",
|
|
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",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@react-navigation/native": ">=6.0.0",
|
|
37
37
|
"@react-navigation/stack": ">=6.0.0",
|
|
38
38
|
"@tanstack/react-query": ">=5.0.0",
|
|
39
|
-
"@umituz/react-native-design-system": "
|
|
40
|
-
"@umituz/react-native-firebase": "
|
|
41
|
-
"@umituz/react-native-localization": "
|
|
42
|
-
"@umituz/react-native-sentry": "
|
|
43
|
-
"@umituz/react-native-storage": "
|
|
44
|
-
"@umituz/react-native-tanstack": "
|
|
45
|
-
"@umituz/react-native-validation": "
|
|
39
|
+
"@umituz/react-native-design-system": "*",
|
|
40
|
+
"@umituz/react-native-firebase": "*",
|
|
41
|
+
"@umituz/react-native-localization": "*",
|
|
42
|
+
"@umituz/react-native-sentry": "*",
|
|
43
|
+
"@umituz/react-native-storage": "*",
|
|
44
|
+
"@umituz/react-native-tanstack": "*",
|
|
45
|
+
"@umituz/react-native-validation": "*",
|
|
46
46
|
"expo-linear-gradient": ">=13.0.0",
|
|
47
47
|
"firebase": ">=11.0.0",
|
|
48
48
|
"react": ">=18.2.0",
|
|
@@ -107,4 +107,4 @@
|
|
|
107
107
|
"README.md",
|
|
108
108
|
"LICENSE"
|
|
109
109
|
]
|
|
110
|
-
}
|
|
110
|
+
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-argument */
|
|
8
8
|
import { useCallback, useState } from "react";
|
|
9
9
|
import { useAuth } from "./useAuth";
|
|
10
|
-
// @ts-expect-error - Module def issue in node_modules vs types
|
|
11
10
|
import { deleteCurrentUser } from "@umituz/react-native-firebase";
|
|
12
11
|
|
|
13
12
|
export interface UseAccountManagementOptions {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import { useState, useEffect, useRef, useMemo } from "react";
|
|
8
8
|
import { DeviceEventEmitter } from "react-native";
|
|
9
9
|
import { getAuthService } from "../../infrastructure/services/AuthService";
|
|
10
|
-
// @ts-expect-error - Module def issue in node_modules vs types
|
|
11
10
|
import { useFirebaseAuth } from "@umituz/react-native-firebase";
|
|
12
11
|
import { mapToAuthUser } from "../../infrastructure/utils/UserMapper";
|
|
13
12
|
import type { AuthUser } from "../../domain/entities/AuthUser";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
|
-
import { View,
|
|
9
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
+
import { View, StyleSheet } from "react-native";
|
|
9
|
+
import { useAppDesignTokens, ScreenLayout } from "@umituz/react-native-design-system";
|
|
10
10
|
|
|
11
11
|
import { ProfileSection, type ProfileSectionConfig } from "../components/ProfileSection";
|
|
12
12
|
import { AccountActions, type AccountActionsConfig } from "../components/AccountActions";
|
|
@@ -31,8 +31,10 @@ export const AccountScreen: React.FC<AccountScreenProps> = ({ config }) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<
|
|
35
|
-
|
|
34
|
+
<ScreenLayout
|
|
35
|
+
scrollable={true}
|
|
36
|
+
edges={['bottom']}
|
|
37
|
+
backgroundColor={tokens.colors.backgroundPrimary}
|
|
36
38
|
contentContainerStyle={styles.content}
|
|
37
39
|
>
|
|
38
40
|
<ProfileSection
|
|
@@ -46,19 +48,17 @@ export const AccountScreen: React.FC<AccountScreenProps> = ({ config }) => {
|
|
|
46
48
|
<AccountActions config={config.accountActions} />
|
|
47
49
|
</>
|
|
48
50
|
)}
|
|
49
|
-
</
|
|
51
|
+
</ScreenLayout>
|
|
50
52
|
);
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
const styles = StyleSheet.create({
|
|
54
|
-
|
|
55
|
-
flex: 1,
|
|
56
|
-
},
|
|
56
|
+
},
|
|
57
57
|
content: {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
padding: 16,
|
|
59
|
+
},
|
|
60
60
|
divider: {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
height: 24,
|
|
62
|
+
},
|
|
63
63
|
});
|
|
64
64
|
|