@umituz/react-native-settings 4.20.42 → 4.20.43

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.20.42",
3
+ "version": "4.20.43",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, and rating",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -2,9 +2,6 @@
2
2
  * @umituz/react-native-faqs - Components
3
3
  */
4
4
 
5
- export { FAQSection } from './FAQSection';
6
- export type { FAQSectionProps, FAQConfig } from './FAQSection';
7
-
8
5
  export { FAQItemComponent } from './FAQItem';
9
6
  export type { FAQItemProps } from './FAQItem';
10
7
 
@@ -1,53 +0,0 @@
1
- /**
2
- * FAQ Section Component
3
- * Renders FAQ entry point for settings
4
- */
5
-
6
- import React from 'react';
7
- import { AtomicIcon } from '@umituz/react-native-design-system';
8
-
9
- export interface FAQConfig {
10
- enabled?: boolean;
11
- title?: string;
12
- description?: string;
13
- onPress?: () => void;
14
- }
15
-
16
- export interface FAQSectionProps {
17
- config: FAQConfig;
18
- renderSection: (props: {
19
- title: string;
20
- children: React.ReactNode;
21
- }) => React.ReactElement | null;
22
- renderItem: (props: {
23
- title: string;
24
- icon: any;
25
- onPress: () => void;
26
- isLast?: boolean;
27
- }) => React.ReactElement | null;
28
- }
29
-
30
- export const FAQSection: React.FC<FAQSectionProps> = ({
31
- config,
32
- renderSection,
33
- renderItem,
34
- }) => {
35
- // onPress is required for FAQ section to be functional
36
- if (!config.enabled || !config.title || !config.description || !config.onPress) {
37
- return null;
38
- }
39
-
40
- return (
41
- <>
42
- {renderSection({
43
- title: config.title,
44
- children: renderItem({
45
- title: config.description,
46
- icon: 'help-circle',
47
- onPress: config.onPress,
48
- isLast: true,
49
- }),
50
- })}
51
- </>
52
- );
53
- };