@umituz/react-native-settings 4.23.89 → 4.23.91
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-settings",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.91",
|
|
4
4
|
"description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-i18next": ">=15.0.0",
|
|
58
58
|
"react-native": "0.81.4",
|
|
59
59
|
"react-native-safe-area-context": ">=4.0.0",
|
|
60
|
-
"zustand": ">=
|
|
60
|
+
"zustand": ">=5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@expo/vector-icons": "^15.0.0",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@types/react": "~19.1.10",
|
|
75
75
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
76
76
|
"@typescript-eslint/parser": "^7.18.0",
|
|
77
|
-
"@umituz/react-native-auth": "
|
|
77
|
+
"@umituz/react-native-auth": "latest",
|
|
78
78
|
"@umituz/react-native-design-system": "latest",
|
|
79
|
-
"@umituz/react-native-firebase": "
|
|
80
|
-
"@umituz/react-native-sentry": "
|
|
79
|
+
"@umituz/react-native-firebase": "latest",
|
|
80
|
+
"@umituz/react-native-sentry": "latest",
|
|
81
81
|
"eslint": "^8.57.0",
|
|
82
82
|
"eslint-plugin-react": "^7.37.5",
|
|
83
83
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -9,6 +9,7 @@ import { FAQScreen } from "../../../domains/faqs";
|
|
|
9
9
|
import { AboutScreen } from "../../../domains/about";
|
|
10
10
|
import { LegalScreen } from "../../../domains/legal";
|
|
11
11
|
import { GamificationScreen } from "../../../domains/gamification";
|
|
12
|
+
import { VideoTutorialsScreen } from "../../../domains/video-tutorials";
|
|
12
13
|
import {
|
|
13
14
|
createScreenWithProps,
|
|
14
15
|
convertAdditionalScreen,
|
|
@@ -43,6 +44,7 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
43
44
|
faqData,
|
|
44
45
|
additionalScreens,
|
|
45
46
|
gamificationConfig,
|
|
47
|
+
videoTutorialConfig,
|
|
46
48
|
accountConfig,
|
|
47
49
|
t,
|
|
48
50
|
} = props;
|
|
@@ -103,10 +105,7 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
103
105
|
|
|
104
106
|
const additionalStackScreens: StackScreen[] = (additionalScreens || []).map(convertAdditionalScreen);
|
|
105
107
|
|
|
106
|
-
const gamificationScreen =
|
|
107
|
-
!!(gamificationConfig?.enabled),
|
|
108
|
-
() => createScreenWithProps("Gamification", GamificationScreen as any, { config: gamificationConfig })
|
|
109
|
-
);
|
|
108
|
+
const gamificationScreen = createScreenWithProps("Gamification", GamificationScreen as any, { config: gamificationConfig });
|
|
110
109
|
|
|
111
110
|
const languageScreen = createScreenWithProps("LanguageSelection", LanguageSelectionScreen, {
|
|
112
111
|
headerTitle: t("settings.language.title"),
|
|
@@ -118,13 +117,19 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
118
117
|
() => createScreenWithProps("Account", AccountScreen as any, { config: accountConfig })
|
|
119
118
|
);
|
|
120
119
|
|
|
120
|
+
const videoTutorialScreen = createScreenWithProps("VideoTutorial", VideoTutorialsScreen as any, {
|
|
121
|
+
...videoTutorialConfig,
|
|
122
|
+
title: videoTutorialConfig?.title || t("settings.videoTutorial.title"),
|
|
123
|
+
});
|
|
124
|
+
|
|
121
125
|
return combineScreens(
|
|
122
126
|
baseScreens,
|
|
123
127
|
faqScreen,
|
|
124
128
|
additionalStackScreens,
|
|
125
129
|
gamificationScreen,
|
|
126
130
|
languageScreen,
|
|
127
|
-
accountScreen
|
|
131
|
+
accountScreen,
|
|
132
|
+
videoTutorialScreen
|
|
128
133
|
);
|
|
129
134
|
}, [
|
|
130
135
|
t,
|
|
@@ -144,6 +149,7 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
144
149
|
faqData,
|
|
145
150
|
additionalScreens,
|
|
146
151
|
gamificationConfig,
|
|
152
|
+
videoTutorialConfig,
|
|
147
153
|
accountConfig,
|
|
148
154
|
]);
|
|
149
155
|
};
|
|
@@ -45,6 +45,7 @@ export type SettingsStackParamList = {
|
|
|
45
45
|
LanguageSelection: undefined;
|
|
46
46
|
Gamification: undefined;
|
|
47
47
|
Account: undefined;
|
|
48
|
+
VideoTutorial: undefined;
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
/**
|
|
@@ -105,4 +106,5 @@ export interface SettingsStackNavigatorProps {
|
|
|
105
106
|
/** Custom close handler */
|
|
106
107
|
onClose?: () => void;
|
|
107
108
|
gamificationConfig?: import("../../domains/gamification").GamificationSettingsConfig;
|
|
109
|
+
videoTutorialConfig?: import("../../domains/video-tutorials").VideoTutorialsScreenProps;
|
|
108
110
|
}
|