@umituz/react-native-auth 3.4.45 → 3.4.47
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": "3.4.
|
|
3
|
+
"version": "3.4.47",
|
|
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",
|
|
@@ -85,14 +85,17 @@ export function useAuthBottomSheet(params: UseAuthBottomSheetParams = {}) {
|
|
|
85
85
|
justConvertedFromAnonymous,
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
// Execute callback BEFORE closing to prevent clearPendingCallback from clearing it
|
|
89
89
|
executePendingCallback();
|
|
90
|
+
// Close modal and hide (without clearing callback again)
|
|
91
|
+
modalRef.current?.dismiss();
|
|
92
|
+
hideAuthModal();
|
|
90
93
|
}
|
|
91
|
-
|
|
94
|
+
|
|
92
95
|
prevIsAuthenticatedRef.current = isAuthenticated;
|
|
93
96
|
prevIsVisibleRef.current = isVisible;
|
|
94
97
|
prevIsAnonymousRef.current = isAnonymous;
|
|
95
|
-
}, [isAuthenticated, isVisible, isAnonymous, executePendingCallback,
|
|
98
|
+
}, [isAuthenticated, isVisible, isAnonymous, executePendingCallback, hideAuthModal]);
|
|
96
99
|
|
|
97
100
|
const handleNavigateToRegister = useCallback(() => {
|
|
98
101
|
setMode("register");
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useEffect, useState } from "react";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import {
|
|
8
|
+
createStackNavigator,
|
|
9
|
+
useAppDesignTokens,
|
|
10
|
+
storageRepository,
|
|
11
|
+
unwrap,
|
|
12
|
+
type StackScreenProps,
|
|
13
|
+
} from "@umituz/react-native-design-system";
|
|
10
14
|
import { LoginScreen } from "../screens/LoginScreen";
|
|
11
15
|
import { RegisterScreen } from "../screens/RegisterScreen";
|
|
12
16
|
|