@umituz/react-native-settings 1.8.1 → 1.9.0

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": "1.8.1",
3
+ "version": "1.9.0",
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",
@@ -98,6 +98,7 @@ const styles = StyleSheet.create({
98
98
  paddingVertical: 16,
99
99
  marginHorizontal: 16,
100
100
  marginTop: 0,
101
+ marginBottom: 0,
101
102
  borderRadius: 12,
102
103
  borderWidth: 1,
103
104
  },
@@ -86,14 +86,17 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
86
86
  showsVerticalScrollIndicator={false}
87
87
  >
88
88
  {showUserProfile && (
89
- <UserProfileHeader
90
- displayName={userProfile?.displayName}
91
- userId={userProfile?.userId}
92
- isGuest={userProfile?.isGuest}
93
- avatarUrl={userProfile?.avatarUrl}
94
- accountSettingsRoute={userProfile?.accountSettingsRoute}
95
- onPress={userProfile?.onPress}
96
- />
89
+ <>
90
+ <UserProfileHeader
91
+ displayName={userProfile?.displayName}
92
+ userId={userProfile?.userId}
93
+ isGuest={userProfile?.isGuest}
94
+ avatarUrl={userProfile?.avatarUrl}
95
+ accountSettingsRoute={userProfile?.accountSettingsRoute}
96
+ onPress={userProfile?.onPress}
97
+ />
98
+ <View style={{ height: 24 }} />
99
+ </>
97
100
  )}
98
101
 
99
102
  {features.appearance && (
@@ -115,7 +118,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
115
118
 
116
119
  {customSections && customSections.length > 0 && (
117
120
  <>
118
- {customSections
121
+ {Array.from(customSections)
119
122
  .sort((a, b) => (a.order ?? 999) - (b.order ?? 999))
120
123
  .map((section, index) => (
121
124
  <SettingsSection