@umituz/react-native-settings 4.17.10 → 4.17.11

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.10",
3
+ "version": "4.17.11",
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",
@@ -242,40 +242,44 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
242
242
  />
243
243
  )}
244
244
 
245
- {(features.feedback || features.rating) && (
246
- <SupportSection
247
- renderSection={(props: any) => <SettingsSection {...props} />}
248
- renderItem={(props: any) => <SettingItem {...props} />}
249
- feedbackConfig={{
250
- enabled: features.feedback,
251
- config: {
252
- ...normalizedConfig.feedback.config,
253
- title: normalizedConfig.feedback.config?.title || t("settings.support.title") || "Support",
254
- description: normalizedConfig.feedback.config?.description || t("settings.feedback.description") || "Send Feedback",
255
- }
256
- }}
257
- ratingConfig={{
258
- enabled: features.rating,
259
- config: {
260
- ...normalizedConfig.rating.config,
261
- title: normalizedConfig.rating.config?.title || t("settings.support.title") || "Support",
262
- description: normalizedConfig.rating.config?.description || t("settings.rating.description") || "Rate Us",
263
- }
264
- }}
265
- />
266
- )}
245
+ {(features.feedback || features.rating || features.faqs) && (
246
+ <SettingsSection title={t("settings.support.title") || "Support"}>
247
+ {(features.feedback || features.rating) && (
248
+ <SupportSection
249
+ renderSection={() => null}
250
+ renderItem={(props: any) => <SettingItem {...props} />}
251
+ feedbackConfig={{
252
+ enabled: features.feedback,
253
+ config: {
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",
257
+ }
258
+ }}
259
+ ratingConfig={{
260
+ enabled: features.rating,
261
+ config: {
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",
265
+ }
266
+ }}
267
+ />
268
+ )}
267
269
 
268
- {features.faqs && FAQSection && (
269
- <FAQSection
270
- renderSection={(props: any) => <SettingsSection {...props} />}
271
- renderItem={(props: any) => <SettingItem {...props} />}
272
- config={{
273
- enabled: features.faqs,
274
- ...normalizedConfig.faqs.config,
275
- title: normalizedConfig.faqs.config?.title || t("settings.support.title") || "Support",
276
- description: normalizedConfig.faqs.config?.description || t("settings.faqs.description") || "FAQs",
277
- }}
278
- />
270
+ {features.faqs && FAQSection && (
271
+ <FAQSection
272
+ renderSection={() => null}
273
+ renderItem={(props: any) => <SettingItem {...props} />}
274
+ config={{
275
+ enabled: features.faqs,
276
+ ...normalizedConfig.faqs.config,
277
+ title: normalizedConfig.faqs.config?.title || t("settings.faqs.title") || "FAQs",
278
+ description: normalizedConfig.faqs.config?.description || t("settings.faqs.description") || "FAQs",
279
+ }}
280
+ />
281
+ )}
282
+ </SettingsSection>
279
283
  )}
280
284
 
281
285
  {features.disclaimer && DisclaimerSetting && (