@fadyshawky/react-native-magic 1.0.6 → 1.0.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/CHANGELOG.md +22 -1
- package/package.json +1 -1
- package/template/src/common/components/PrimaryButton.tsx +6 -6
- package/template/src/common/components/PrimaryTextInput.tsx +2 -2
- package/template/src/common/components/RadioIcon.tsx +4 -4
- package/template/src/common/components/TryAgain.tsx +2 -2
- package/template/src/navigation/MainNavigation.tsx +1 -18
- package/template/src/navigation/TabBar.tsx +2 -2
- package/template/src/screens/Login/Login.tsx +3 -3
- package/template/src/screens/registration/RegistrationScreen.tsx +2 -2
- package/template/src/screens/resetPassword/ForgotPasswordScreen.tsx +2 -2
- package/.vscode/settings.json +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [1.0.
|
|
5
|
+
## [1.0.7] - 2024-12-27
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Enhanced UI components for better user experience:
|
|
9
|
+
- Improved form input styling
|
|
10
|
+
- Updated button states for better feedback
|
|
11
|
+
- Refined error message displays
|
|
12
|
+
- Added loading spinners for async actions
|
|
13
|
+
- Standardized form layouts across authentication flows
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Responsive design improvements for mobile devices
|
|
17
|
+
- Visual feedback for form validation states
|
|
18
|
+
- Transition animations for state changes
|
|
19
|
+
- Consistent error message styling
|
|
20
|
+
|
|
21
|
+
## [1.0.6] - 2024-12-25
|
|
6
22
|
|
|
7
23
|
### Added
|
|
8
24
|
- Added missing password reset handlers (`resetPasswordErrorHandler` and `resetPasswordLoadingHandler`) to user slice
|
|
@@ -17,6 +33,11 @@ All notable changes to this project will be documented in this file.
|
|
|
17
33
|
- Error handling for failed registration attempts
|
|
18
34
|
- Loading states during registration process
|
|
19
35
|
|
|
36
|
+
### Fixed
|
|
37
|
+
- Fixed password reset error handling in user slice
|
|
38
|
+
- Resolved undefined handler errors in password reset flow
|
|
39
|
+
- Improved registration flow error handling
|
|
40
|
+
|
|
20
41
|
## [1.0.5] - 2024-12-23
|
|
21
42
|
|
|
22
43
|
### Fixed
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
IIconPlatformProps,
|
|
17
17
|
TouchablePlatformProps,
|
|
18
18
|
} from '../../../types';
|
|
19
|
-
import {Colors} from '../../core/theme/colors';
|
|
19
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
20
20
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
21
21
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
22
22
|
import {IconPlatform} from './IconPlatform';
|
|
@@ -203,7 +203,7 @@ const commonIcon: ImageStyle = {
|
|
|
203
203
|
const solidStyles = StyleSheet.create({
|
|
204
204
|
button: {
|
|
205
205
|
...commonButtonStyle,
|
|
206
|
-
backgroundColor:
|
|
206
|
+
backgroundColor: NewColors.blueNormalActive,
|
|
207
207
|
} as ViewStyle,
|
|
208
208
|
label: {
|
|
209
209
|
...commonLabelStyle,
|
|
@@ -217,12 +217,12 @@ const solidStyles = StyleSheet.create({
|
|
|
217
217
|
const outlineStyles = StyleSheet.create({
|
|
218
218
|
button: {
|
|
219
219
|
...commonButtonStyle,
|
|
220
|
-
borderColor:
|
|
220
|
+
borderColor: NewColors.blueNormalActive,
|
|
221
221
|
borderWidth: 2,
|
|
222
222
|
} as ViewStyle,
|
|
223
223
|
label: {
|
|
224
224
|
...commonLabelStyle,
|
|
225
|
-
color:
|
|
225
|
+
color: NewColors.blueNormalActive,
|
|
226
226
|
} as TextStyle,
|
|
227
227
|
icon: {
|
|
228
228
|
...commonIcon,
|
|
@@ -255,7 +255,7 @@ const borderlessStyles = StyleSheet.create({
|
|
|
255
255
|
} as ViewStyle,
|
|
256
256
|
label: {
|
|
257
257
|
...commonLabelStyle,
|
|
258
|
-
color:
|
|
258
|
+
color: NewColors.blueNormalActive,
|
|
259
259
|
textDecorationLine: 'underline',
|
|
260
260
|
} as TextStyle,
|
|
261
261
|
icon: {
|
|
@@ -278,7 +278,7 @@ const roundedButtonStyle: ViewStyle = {
|
|
|
278
278
|
const smallSolidStyles = StyleSheet.create({
|
|
279
279
|
button: {
|
|
280
280
|
...roundedButtonStyle,
|
|
281
|
-
backgroundColor:
|
|
281
|
+
backgroundColor: NewColors.blueNormalActive,
|
|
282
282
|
} as ViewStyle,
|
|
283
283
|
label: {
|
|
284
284
|
...CommonStyles.normalText,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
View,
|
|
22
22
|
ViewStyle,
|
|
23
23
|
} from 'react-native';
|
|
24
|
-
import {Colors} from '../../core/theme/colors';
|
|
24
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
25
25
|
import {isIos} from '../../core/theme/commonConsts';
|
|
26
26
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
27
27
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
@@ -192,7 +192,7 @@ function getInputContainerStyle(
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
const selectionColor =
|
|
195
|
+
const selectionColor = NewColors.blueNormalActive;
|
|
196
196
|
|
|
197
197
|
const commonInputContainer: TextStyle = {
|
|
198
198
|
flexDirection: 'row',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {FC, memo, useMemo} from 'react';
|
|
2
2
|
import {StyleSheet, View, ViewStyle} from 'react-native';
|
|
3
|
-
import {Colors} from '../../core/theme/colors';
|
|
3
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
4
4
|
|
|
5
5
|
interface IProps {
|
|
6
6
|
isSelected: boolean;
|
|
@@ -42,14 +42,14 @@ const commonInnerCircle: ViewStyle = {
|
|
|
42
42
|
const styles = StyleSheet.create({
|
|
43
43
|
outerCircle: {
|
|
44
44
|
...commonOuterCircle,
|
|
45
|
-
borderColor:
|
|
45
|
+
borderColor: NewColors.blueNormalActive,
|
|
46
46
|
} as ViewStyle,
|
|
47
47
|
outerCircleSelected: {
|
|
48
48
|
...commonOuterCircle,
|
|
49
|
-
borderColor:
|
|
49
|
+
borderColor: NewColors.blueNormalActive,
|
|
50
50
|
} as ViewStyle,
|
|
51
51
|
innerCircle: {
|
|
52
52
|
...commonInnerCircle,
|
|
53
|
-
backgroundColor:
|
|
53
|
+
backgroundColor: NewColors.blueNormalActive,
|
|
54
54
|
} as ViewStyle,
|
|
55
55
|
});
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
TouchableOpacity,
|
|
7
7
|
View,
|
|
8
8
|
} from 'react-native';
|
|
9
|
-
import {Colors} from '../../core/theme/colors';
|
|
9
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
10
10
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
11
11
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
12
12
|
import {localization} from '../localization/localization';
|
|
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
|
|
|
42
42
|
} as TextStyle,
|
|
43
43
|
description: {
|
|
44
44
|
...CommonStyles.normalText,
|
|
45
|
-
color:
|
|
45
|
+
color: NewColors.blueNormalActive,
|
|
46
46
|
textAlign: 'center',
|
|
47
47
|
textDecorationLine: 'underline',
|
|
48
48
|
} as TextStyle,
|
|
@@ -27,24 +27,7 @@ function AppNavigator() {
|
|
|
27
27
|
border: '#000',
|
|
28
28
|
notification: '#ff0000',
|
|
29
29
|
},
|
|
30
|
-
fonts:
|
|
31
|
-
regular: {
|
|
32
|
-
fontFamily: Fonts.regular,
|
|
33
|
-
fontWeight: 'normal',
|
|
34
|
-
},
|
|
35
|
-
medium: {
|
|
36
|
-
fontFamily: Fonts.medium,
|
|
37
|
-
fontWeight: '500',
|
|
38
|
-
},
|
|
39
|
-
bold: {
|
|
40
|
-
fontFamily: Fonts.bold,
|
|
41
|
-
fontWeight: '700',
|
|
42
|
-
},
|
|
43
|
-
heavy: {
|
|
44
|
-
fontFamily: Fonts.bold,
|
|
45
|
-
fontWeight: '900',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
30
|
+
fonts: DefaultTheme.fonts,
|
|
48
31
|
}}
|
|
49
32
|
onReady={() => {
|
|
50
33
|
routeNameRef.current = navigationRef.current?.getCurrentRoute()?.name;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {View, Text, TouchableOpacity, Image, StyleSheet} from 'react-native';
|
|
3
3
|
import {CommonStyles} from '../core/theme/commonStyles';
|
|
4
|
-
import {Colors} from '../core/theme/colors';
|
|
4
|
+
import {Colors, NewColors} from '../core/theme/colors';
|
|
5
5
|
import {
|
|
6
6
|
BottomTabBarProps,
|
|
7
7
|
BottomTabNavigationOptions,
|
|
@@ -89,6 +89,6 @@ const styles = StyleSheet.create({
|
|
|
89
89
|
color: Colors.gray,
|
|
90
90
|
},
|
|
91
91
|
labelFocused: {
|
|
92
|
-
color:
|
|
92
|
+
color: NewColors.blueNormalActive,
|
|
93
93
|
},
|
|
94
94
|
});
|
|
@@ -19,7 +19,7 @@ import {useInputError} from '../../common/validations/hooks/useInputError';
|
|
|
19
19
|
import {emailValidations} from '../../common/validations/profileValidations';
|
|
20
20
|
import {useAppDispatch} from '../../core/store/reduxHelpers';
|
|
21
21
|
import {userLogin} from '../../core/store/user/userActions';
|
|
22
|
-
import {Colors} from '../../core/theme/colors';
|
|
22
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
23
23
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
24
24
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
25
25
|
import type {RootStackParamList} from '../../navigation/types';
|
|
@@ -151,14 +151,14 @@ const styles = StyleSheet.create({
|
|
|
151
151
|
},
|
|
152
152
|
forgotPassword: {
|
|
153
153
|
...CommonStyles.normalText,
|
|
154
|
-
color:
|
|
154
|
+
color: NewColors.blueNormalActive,
|
|
155
155
|
textAlign: 'right',
|
|
156
156
|
marginTop: 8,
|
|
157
157
|
marginBottom: 24,
|
|
158
158
|
},
|
|
159
159
|
registerLink: {
|
|
160
160
|
...CommonStyles.normalText,
|
|
161
|
-
color:
|
|
161
|
+
color: NewColors.blueNormalActive,
|
|
162
162
|
textAlign: 'center',
|
|
163
163
|
marginTop: 16,
|
|
164
164
|
},
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../common/validations/profileValidations';
|
|
22
22
|
import {useAppDispatch} from '../../core/store/reduxHelpers';
|
|
23
23
|
import {userRegister} from '../../core/store/user/userActions';
|
|
24
|
-
import {Colors} from '../../core/theme/colors';
|
|
24
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
25
25
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
26
26
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
27
27
|
import type {RootStackParamList} from '../../navigation/types';
|
|
@@ -191,7 +191,7 @@ const styles = StyleSheet.create({
|
|
|
191
191
|
},
|
|
192
192
|
loginLink: {
|
|
193
193
|
...CommonStyles.normalText,
|
|
194
|
-
color:
|
|
194
|
+
color: NewColors.blueNormalActive,
|
|
195
195
|
textAlign: 'center',
|
|
196
196
|
marginTop: 16,
|
|
197
197
|
},
|
|
@@ -17,7 +17,7 @@ import {useInputError} from '../../common/validations/hooks/useInputError';
|
|
|
17
17
|
import {emailValidations} from '../../common/validations/profileValidations';
|
|
18
18
|
import {useAppDispatch} from '../../core/store/reduxHelpers';
|
|
19
19
|
import {resetPassword} from '../../core/store/user/userActions';
|
|
20
|
-
import {Colors} from '../../core/theme/colors';
|
|
20
|
+
import {Colors, NewColors} from '../../core/theme/colors';
|
|
21
21
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
22
22
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
23
23
|
import type {RootStackParamList} from '../../navigation/types';
|
|
@@ -122,7 +122,7 @@ const styles = StyleSheet.create({
|
|
|
122
122
|
},
|
|
123
123
|
loginLink: {
|
|
124
124
|
...CommonStyles.normalText,
|
|
125
|
-
color:
|
|
125
|
+
color: NewColors.blueNormalActive,
|
|
126
126
|
textAlign: 'center',
|
|
127
127
|
marginTop: 16,
|
|
128
128
|
},
|