@umituz/react-native-settings 4.17.12 → 4.17.14

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.17.12",
3
+ "version": "4.17.14",
4
4
  "description": "Settings management for React Native apps - user preferences, theme, language, notifications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -77,4 +77,4 @@
77
77
  "README.md",
78
78
  "LICENSE"
79
79
  ]
80
- }
80
+ }
@@ -174,12 +174,8 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
174
174
  <AppearanceSection
175
175
  config={{
176
176
  ...normalizedConfig.appearance.config,
177
- title:
178
- normalizedConfig.appearance.config?.title ||
179
- t("settings.appearance.title"),
180
- description:
181
- normalizedConfig.appearance.config?.description ||
182
- t("settings.appearance.description"),
177
+ title: t("settings.appearance.title"),
178
+ description: t("settings.appearance.description"),
183
179
  }}
184
180
  sectionTitle={t("settings.appearance.title")}
185
181
  />
@@ -202,12 +198,8 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
202
198
  <NotificationsSection
203
199
  config={{
204
200
  ...normalizedConfig.notifications.config,
205
- title:
206
- normalizedConfig.notifications.config?.title ||
207
- t("settings.notifications.title"),
208
- description:
209
- normalizedConfig.notifications.config?.description ||
210
- t("settings.notifications.description"),
201
+ title: t("settings.notifications.title"),
202
+ description: t("settings.notifications.description"),
211
203
  }}
212
204
  />
213
205
  )}
@@ -216,12 +208,8 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
216
208
  <AboutSection
217
209
  config={{
218
210
  ...normalizedConfig.about.config,
219
- title:
220
- normalizedConfig.about.config?.title ||
221
- t("settings.about.title"),
222
- description:
223
- normalizedConfig.about.config?.description ||
224
- t("settings.about.description"),
211
+ title: t("settings.about.title"),
212
+ description: t("settings.about.description"),
225
213
  }}
226
214
  sectionTitle={t("settings.about.title")}
227
215
  />
@@ -231,19 +219,15 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
231
219
  <LegalSection
232
220
  config={{
233
221
  ...normalizedConfig.legal.config,
234
- title:
235
- normalizedConfig.legal.config?.title ||
236
- t("settings.legal.title"),
237
- description:
238
- normalizedConfig.legal.config?.description ||
239
- t("settings.legal.description"),
222
+ title: t("settings.legal.title"),
223
+ description: t("settings.legal.description"),
240
224
  }}
241
225
  sectionTitle={t("settings.legal.title")}
242
226
  />
243
227
  )}
244
228
 
245
229
  {(features.feedback || features.rating || features.faqs) && (
246
- <SettingsSection title={t("settings.support.title") || "Support"}>
230
+ <SettingsSection title={t("settings.support.title")}>
247
231
  {(features.feedback || features.rating) && (
248
232
  <SupportSection
249
233
  renderSection={(props: any) => <>{props.children}</>}
@@ -252,21 +236,46 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
252
236
  enabled: features.feedback,
253
237
  config: {
254
238
  ...normalizedConfig.feedback.config,
255
- title: normalizedConfig.feedback.config?.title || t("settings.feedback.title") || "Feedback",
256
- description: normalizedConfig.feedback.config?.description || t("settings.feedback.description") || "Send Feedback",
239
+ title: normalizedConfig.feedback.config?.title || t("settings.feedback.title"),
240
+ description: normalizedConfig.feedback.config?.description || t("settings.feedback.description"),
257
241
  }
258
242
  }}
259
243
  ratingConfig={{
260
244
  enabled: features.rating,
261
245
  config: {
262
246
  ...normalizedConfig.rating.config,
263
- title: normalizedConfig.rating.config?.title || t("settings.rating.title") || "Rate Us",
264
- description: normalizedConfig.rating.config?.description || t("settings.rating.description") || "Rate Us",
247
+ title: normalizedConfig.rating.config?.title || t("settings.rating.title"),
248
+ description: normalizedConfig.rating.config?.description || t("settings.rating.description"),
265
249
  }
266
250
  }}
251
+ feedbackModalTexts={{
252
+ title: t("settings.feedback.modal.title"),
253
+ ratingLabel: t("settings.feedback.modal.ratingLabel"),
254
+ descriptionPlaceholder: t("settings.feedback.modal.descriptionPlaceholder"),
255
+ submitButton: t("settings.feedback.modal.submitButton"),
256
+ submittingButton: t("settings.feedback.modal.submittingButton"),
257
+ feedbackTypes: [
258
+ { type: 'general', label: t("settings.feedback.types.general") },
259
+ { type: 'bug_report', label: t("settings.feedback.types.bugReport") },
260
+ { type: 'feature_request', label: t("settings.feedback.types.featureRequest") },
261
+ { type: 'improvement', label: t("settings.feedback.types.improvement") },
262
+ { type: 'other', label: t("settings.feedback.types.other") },
263
+ ],
264
+ defaultTitle: (type) => {
265
+ const titles = {
266
+ general: t("settings.feedback.types.general"),
267
+ bug_report: t("settings.feedback.types.bugReport"),
268
+ feature_request: t("settings.feedback.types.featureRequest"),
269
+ improvement: t("settings.feedback.types.improvement"),
270
+ other: t("settings.feedback.types.other"),
271
+ };
272
+ return titles[type] || type;
273
+ },
274
+ }}
267
275
  />
268
276
  )}
269
277
 
278
+
270
279
  {features.faqs && FAQSection && (
271
280
  <FAQSection
272
281
  renderSection={(props: any) => <>{props.children}</>}