@umituz/react-native-auth 3.4.30 → 3.4.31

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.
@@ -0,0 +1,198 @@
1
+ # Auth Screens
2
+
3
+ React Native Auth paketi için hazır ekran component'leri.
4
+
5
+ ## Mevcut Screen'ler
6
+
7
+ - **[`LoginScreen`](./LoginScreen.tsx)** - Giriş ekranı
8
+ - **[`RegisterScreen`](./RegisterScreen.tsx)** - Kayıt ekranı
9
+ - **[`AccountScreen`](./AccountScreen.tsx)** - Hesap ayarları ekranı
10
+ - **[`EditProfileScreen`](./EditProfileScreen.tsx)** - Profil düzenleme ekranı
11
+
12
+ ## Kullanım
13
+
14
+ ### LoginScreen
15
+
16
+ ```typescript
17
+ import { LoginScreen } from '@umituz/react-native-auth';
18
+
19
+ function App() {
20
+ return (
21
+ <Stack.Navigator>
22
+ <Stack.Screen
23
+ name="Login"
24
+ component={LoginScreen}
25
+ options={{ headerShown: false }}
26
+ />
27
+ </Stack.Navigator>
28
+ );
29
+ }
30
+ ```
31
+
32
+ ### RegisterScreen
33
+
34
+ ```typescript
35
+ import { RegisterScreen } from '@umituz/react-native-auth';
36
+
37
+ function App() {
38
+ return (
39
+ <Stack.Navigator>
40
+ <Stack.Screen
41
+ name="Register"
42
+ component={RegisterScreen}
43
+ options={{ headerShown: false }}
44
+ />
45
+ </Stack.Navigator>
46
+ );
47
+ }
48
+ ```
49
+
50
+ ### AccountScreen
51
+
52
+ ```typescript
53
+ import { AccountScreen } from '@umituz/react-native-auth';
54
+
55
+ function App() {
56
+ return (
57
+ <Stack.Navigator>
58
+ <Stack.Screen
59
+ name="Account"
60
+ component={AccountScreen}
61
+ options={{ title: 'Hesabım' }}
62
+ />
63
+ </Stack.Navigator>
64
+ );
65
+ }
66
+ ```
67
+
68
+ ### EditProfileScreen
69
+
70
+ ```typescript
71
+ import { EditProfileScreen } from '@umituz/react-native-auth';
72
+
73
+ function App() {
74
+ return (
75
+ <Stack.Navigator>
76
+ <Stack.Screen
77
+ name="EditProfile"
78
+ component={EditProfileScreen}
79
+ options={{ title: 'Profili Düzenle' }}
80
+ />
81
+ </Stack.Navigator>
82
+ );
83
+ }
84
+ ```
85
+
86
+ ## AuthNavigator
87
+
88
+ Tüm auth ekranlarını içeren hazır navigator:
89
+
90
+ ```typescript
91
+ import { AuthNavigator } from '@umituz/react-native-auth';
92
+
93
+ function App() {
94
+ return (
95
+ <NavigationContainer>
96
+ <AuthNavigator />
97
+ </NavigationContainer>
98
+ );
99
+ }
100
+ ```
101
+
102
+ ## Konfigürasyon
103
+
104
+ ### AccountScreen Konfigürasyonu
105
+
106
+ ```typescript
107
+ import { AccountScreen } from '@umituz/react-native-auth';
108
+
109
+ function SettingsScreen() {
110
+ return (
111
+ <AccountScreen
112
+ config={{
113
+ showChangePassword: true,
114
+ benefits: ['Premium içeriklere erişim', 'Reklamsız deneyim'],
115
+ }}
116
+ />
117
+ );
118
+ }
119
+ ```
120
+
121
+ ### EditProfileScreen Konfigürasyonu
122
+
123
+ ```typescript
124
+ import { EditProfileScreen } from '@umituz/react-native-auth';
125
+
126
+ function ProfileSettings() {
127
+ return (
128
+ <EditProfileScreen
129
+ config={{
130
+ showAvatar: true,
131
+ allowEmailChange: false,
132
+ maxDisplayNameLength: 50,
133
+ }}
134
+ />
135
+ );
136
+ }
137
+ ```
138
+
139
+ ## Tam Örnek
140
+
141
+ ```typescript
142
+ import React from 'react';
143
+ import { NavigationContainer } from '@react-navigation/native';
144
+ import { createNativeStackNavigator } from '@react-navigation/native-stack';
145
+ import {
146
+ AuthNavigator,
147
+ LoginScreen,
148
+ RegisterScreen,
149
+ AccountScreen,
150
+ EditProfileScreen,
151
+ } from '@umituz/react-native-auth';
152
+
153
+ const Stack = createNativeStackNavigator();
154
+
155
+ function App() {
156
+ return (
157
+ <NavigationContainer>
158
+ <Stack.Navigator>
159
+ {/* Auth ekranları */}
160
+ <Stack.Screen
161
+ name="Login"
162
+ component={LoginScreen}
163
+ options={{ headerShown: false }}
164
+ />
165
+ <Stack.Screen
166
+ name="Register"
167
+ component={RegisterScreen}
168
+ options={{ headerShown: false }}
169
+ />
170
+
171
+ {/* Hesap ekranları */}
172
+ <Stack.Screen
173
+ name="Account"
174
+ component={AccountScreen}
175
+ options={{ title: 'Hesabım' }}
176
+ />
177
+ <Stack.Screen
178
+ name="EditProfile"
179
+ component={EditProfileScreen}
180
+ options={{ title: 'Profili Düzenle' }}
181
+ />
182
+
183
+ {/* Diğer ekranlar */}
184
+ <Stack.Screen name="Home" component={HomeScreen} />
185
+ </Stack.Navigator>
186
+ </NavigationContainer>
187
+ );
188
+ }
189
+ ```
190
+
191
+ ## İlgili Component'ler
192
+
193
+ - **[Auth Components](../components/README.md)** - Auth UI component'leri
194
+ - **[Auth Hooks](../hooks/README.md)** - Auth hook'ları
195
+
196
+ ## İlgili Navigation
197
+
198
+ - **[AuthNavigator](../navigation/AuthNavigator.tsx)** - Auth navigator
@@ -1,33 +0,0 @@
1
- /**
2
- * Auth Gradient Background Component
3
- * Gradient background for auth screens
4
- */
5
-
6
- import React from "react";
7
- import { StyleSheet } from "react-native";
8
- import { LinearGradient } from "expo-linear-gradient";
9
- import { useAppDesignTokens } from "@umituz/react-native-design-system";
10
-
11
- export const AuthGradientBackground: React.FC = () => {
12
- const tokens = useAppDesignTokens();
13
-
14
- return (
15
- <LinearGradient
16
- colors={[tokens.colors.primary, tokens.colors.surfaceSecondary]}
17
- start={{ x: 0, y: 0 }}
18
- end={{ x: 1, y: 1 }}
19
- style={StyleSheet.absoluteFill}
20
- />
21
- );
22
- };
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-