@umituz/react-native-settings 4.17.11 → 4.17.13

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.11",
3
+ "version": "4.17.13",
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
+ }
@@ -243,33 +243,58 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
243
243
  )}
244
244
 
245
245
  {(features.feedback || features.rating || features.faqs) && (
246
- <SettingsSection title={t("settings.support.title") || "Support"}>
246
+ <SettingsSection title={t("settings.support.title")}>
247
247
  {(features.feedback || features.rating) && (
248
248
  <SupportSection
249
- renderSection={() => null}
249
+ renderSection={(props: any) => <>{props.children}</>}
250
250
  renderItem={(props: any) => <SettingItem {...props} />}
251
251
  feedbackConfig={{
252
252
  enabled: features.feedback,
253
253
  config: {
254
254
  ...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",
255
+ title: normalizedConfig.feedback.config?.title || t("settings.feedback.title"),
256
+ description: normalizedConfig.feedback.config?.description || t("settings.feedback.description"),
257
257
  }
258
258
  }}
259
259
  ratingConfig={{
260
260
  enabled: features.rating,
261
261
  config: {
262
262
  ...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",
263
+ title: normalizedConfig.rating.config?.title || t("settings.rating.title"),
264
+ description: normalizedConfig.rating.config?.description || t("settings.rating.description"),
265
265
  }
266
266
  }}
267
+ feedbackModalTexts={{
268
+ title: t("settings.feedback.modal.title"),
269
+ ratingLabel: t("settings.feedback.modal.ratingLabel"),
270
+ descriptionPlaceholder: t("settings.feedback.modal.descriptionPlaceholder"),
271
+ submitButton: t("settings.feedback.modal.submitButton"),
272
+ submittingButton: t("settings.feedback.modal.submittingButton"),
273
+ feedbackTypes: [
274
+ { type: 'general', label: t("settings.feedback.types.general") },
275
+ { type: 'bug_report', label: t("settings.feedback.types.bugReport") },
276
+ { type: 'feature_request', label: t("settings.feedback.types.featureRequest") },
277
+ { type: 'improvement', label: t("settings.feedback.types.improvement") },
278
+ { type: 'other', label: t("settings.feedback.types.other") },
279
+ ],
280
+ defaultTitle: (type) => {
281
+ const titles = {
282
+ general: t("settings.feedback.types.general"),
283
+ bug_report: t("settings.feedback.types.bugReport"),
284
+ feature_request: t("settings.feedback.types.featureRequest"),
285
+ improvement: t("settings.feedback.types.improvement"),
286
+ other: t("settings.feedback.types.other"),
287
+ };
288
+ return titles[type] || type;
289
+ },
290
+ }}
267
291
  />
268
292
  )}
269
293
 
294
+
270
295
  {features.faqs && FAQSection && (
271
296
  <FAQSection
272
- renderSection={() => null}
297
+ renderSection={(props: any) => <>{props.children}</>}
273
298
  renderItem={(props: any) => <SettingItem {...props} />}
274
299
  config={{
275
300
  enabled: features.faqs,