@umituz/react-native-notifications 1.3.9 → 1.3.10
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
|
@@ -67,31 +67,37 @@ export const NotificationsSection: React.FC<NotificationsSectionProps> = ({
|
|
|
67
67
|
<View style={[styles.container, containerStyle]}>
|
|
68
68
|
<AtomicText type="bodyLarge" style={styles.sectionTitle}>General</AtomicText>
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
style={styles.itemContainer}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</View>
|
|
79
|
-
<View style={styles.textContainer}>
|
|
80
|
-
<AtomicText type="bodyLarge">{title}</AtomicText>
|
|
81
|
-
{!showToggle && <AtomicText type="bodySmall" style={styles.description}>{description}</AtomicText>}
|
|
82
|
-
</View>
|
|
83
|
-
|
|
84
|
-
{showToggle ? (
|
|
70
|
+
{showToggle ? (
|
|
71
|
+
<View style={styles.itemContainer}>
|
|
72
|
+
<View style={styles.iconContainer}>
|
|
73
|
+
<AtomicIcon name="notifications" size="md" color="primary" />
|
|
74
|
+
</View>
|
|
75
|
+
<View style={styles.textContainer}>
|
|
76
|
+
<AtomicText type="bodyLarge">{title}</AtomicText>
|
|
77
|
+
</View>
|
|
85
78
|
<Switch
|
|
86
79
|
value={enabled}
|
|
87
80
|
onValueChange={handleToggle}
|
|
88
81
|
trackColor={{ false: tokens.colors.surfaceSecondary, true: tokens.colors.primary }}
|
|
89
82
|
thumbColor={tokens.colors.surface}
|
|
90
83
|
/>
|
|
91
|
-
|
|
84
|
+
</View>
|
|
85
|
+
) : (
|
|
86
|
+
<TouchableOpacity
|
|
87
|
+
style={styles.itemContainer}
|
|
88
|
+
onPress={handlePress}
|
|
89
|
+
activeOpacity={0.7}
|
|
90
|
+
>
|
|
91
|
+
<View style={styles.iconContainer}>
|
|
92
|
+
<AtomicIcon name="notifications" size="md" color="primary" />
|
|
93
|
+
</View>
|
|
94
|
+
<View style={styles.textContainer}>
|
|
95
|
+
<AtomicText type="bodyLarge">{title}</AtomicText>
|
|
96
|
+
<AtomicText type="bodySmall" style={styles.description}>{description}</AtomicText>
|
|
97
|
+
</View>
|
|
92
98
|
<AtomicIcon name="chevron-forward" size="md" color="secondary" />
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
</TouchableOpacity>
|
|
100
|
+
)}
|
|
95
101
|
</View>
|
|
96
102
|
);
|
|
97
103
|
};
|