@umituz/react-native-auth 2.6.3 → 2.6.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-auth",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
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",
@@ -68,4 +68,4 @@
68
68
  "README.md",
69
69
  "LICENSE"
70
70
  ]
71
- }
71
+ }
@@ -0,0 +1,48 @@
1
+ import { StyleSheet } from "react-native";
2
+
3
+ export const styles = StyleSheet.create({
4
+ background: {
5
+ borderTopLeftRadius: 24,
6
+ borderTopRightRadius: 24,
7
+ },
8
+ handleIndicator: {
9
+ width: 40,
10
+ height: 4,
11
+ borderRadius: 2,
12
+ },
13
+ scrollContent: {
14
+ paddingHorizontal: 24,
15
+ paddingBottom: 20, // Reduced from 40 to 20 to save space
16
+ },
17
+ closeButton: {
18
+ position: "absolute",
19
+ top: 0,
20
+ right: 0,
21
+ padding: 8,
22
+ zIndex: 10,
23
+ },
24
+ closeIcon: {
25
+ fontSize: 24,
26
+ fontWeight: "400",
27
+ },
28
+ header: {
29
+ alignItems: "center",
30
+ marginBottom: 16, // Reduced from 24
31
+ marginTop: 8,
32
+ paddingTop: 8, // Reduced from 16
33
+ },
34
+ title: {
35
+ fontSize: 24, // Reduced from 28
36
+ fontWeight: "700",
37
+ marginBottom: 4, // Reduced from 8
38
+ textAlign: "center",
39
+ },
40
+ subtitle: {
41
+ fontSize: 14, // Reduced from 15
42
+ textAlign: "center",
43
+ lineHeight: 20, // Reduced from 22
44
+ },
45
+ formContainer: {
46
+ flex: 1,
47
+ },
48
+ });
@@ -3,8 +3,8 @@
3
3
  * Bottom sheet modal for authentication (Login/Register)
4
4
  */
5
5
 
6
- import React, { useEffect, useCallback, useRef, useState } from "react";
7
- import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
6
+ import React, { useEffect, useCallback, useRef, useState, useMemo } from "react";
7
+ import { View, Text, TouchableOpacity } from "react-native";
8
8
  import {
9
9
  BottomSheetModal,
10
10
  BottomSheetBackdrop,
@@ -18,6 +18,7 @@ import { useAuth } from "../hooks/useAuth";
18
18
  import { LoginForm } from "./LoginForm";
19
19
  import { RegisterForm } from "./RegisterForm";
20
20
  import { SocialLoginButtons } from "./SocialLoginButtons";
21
+ import { styles } from "./AuthBottomSheet.styles";
21
22
  import type { SocialAuthProvider } from "../../domain/value-objects/AuthConfig";
22
23
 
23
24
  export interface AuthBottomSheetProps {
@@ -113,7 +114,7 @@ export const AuthBottomSheet: React.FC<AuthBottomSheetProps> = ({
113
114
  [],
114
115
  );
115
116
 
116
- const snapPoints = ["85%"];
117
+ const snapPoints = useMemo(() => ["94%"], []);
117
118
 
118
119
  return (
119
120
  <BottomSheetModal
@@ -180,49 +181,3 @@ export const AuthBottomSheet: React.FC<AuthBottomSheetProps> = ({
180
181
  );
181
182
  };
182
183
 
183
- const styles = StyleSheet.create({
184
- background: {
185
- borderTopLeftRadius: 24,
186
- borderTopRightRadius: 24,
187
- },
188
- handleIndicator: {
189
- width: 40,
190
- height: 4,
191
- borderRadius: 2,
192
- },
193
- scrollContent: {
194
- paddingHorizontal: 24,
195
- paddingBottom: 40,
196
- },
197
- closeButton: {
198
- position: "absolute",
199
- top: 0,
200
- right: 0,
201
- padding: 8,
202
- zIndex: 10,
203
- },
204
- closeIcon: {
205
- fontSize: 24,
206
- fontWeight: "400",
207
- },
208
- header: {
209
- alignItems: "center",
210
- marginBottom: 24,
211
- marginTop: 8,
212
- paddingTop: 16,
213
- },
214
- title: {
215
- fontSize: 28,
216
- fontWeight: "700",
217
- marginBottom: 8,
218
- textAlign: "center",
219
- },
220
- subtitle: {
221
- fontSize: 15,
222
- textAlign: "center",
223
- lineHeight: 22,
224
- },
225
- formContainer: {
226
- flex: 1,
227
- },
228
- });
@@ -153,14 +153,14 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
153
153
 
154
154
  const styles = StyleSheet.create({
155
155
  inputContainer: {
156
- marginBottom: 20,
156
+ marginBottom: 16,
157
157
  },
158
158
  buttonContainer: {
159
- marginBottom: 16,
159
+ marginBottom: 12,
160
160
  marginTop: 8,
161
161
  },
162
162
  signUpButton: {
163
- minHeight: 52,
163
+ minHeight: 48,
164
164
  },
165
165
  });
166
166
 
@@ -111,12 +111,12 @@ export const SocialLoginButtons: React.FC<SocialLoginButtonsProps> = ({
111
111
 
112
112
  const styles = StyleSheet.create({
113
113
  container: {
114
- marginTop: 24,
114
+ marginTop: 16,
115
115
  },
116
116
  dividerContainer: {
117
117
  flexDirection: "row",
118
118
  alignItems: "center",
119
- marginBottom: 20,
119
+ marginBottom: 16,
120
120
  },
121
121
  divider: {
122
122
  flex: 1,
@@ -135,7 +135,7 @@ const styles = StyleSheet.create({
135
135
  flexDirection: "row",
136
136
  alignItems: "center",
137
137
  justifyContent: "center",
138
- paddingVertical: 14,
138
+ paddingVertical: 12,
139
139
  borderRadius: 12,
140
140
  borderWidth: 1,
141
141
  gap: 8,