@umituz/react-native-settings 1.3.3 → 1.3.4

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.3.3",
3
+ "version": "1.3.4",
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",
@@ -14,6 +14,7 @@
14
14
  import React, { useMemo } from 'react';
15
15
  import { List, Divider } from 'react-native-paper';
16
16
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
17
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
17
18
 
18
19
  import { useNavigation } from '@react-navigation/native';
19
20
  import { useTheme, useAppDesignTokens } from '@umituz/react-native-design-system-theme';
@@ -78,6 +79,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
78
79
  const navigation = useNavigation();
79
80
  const { theme, themeMode } = useTheme();
80
81
  const tokens = useAppDesignTokens();
82
+ const insets = useSafeAreaInsets();
81
83
  const { currentLanguage, t } = useLocalization();
82
84
 
83
85
  const currentLang = getLanguageByCode(currentLanguage);
@@ -147,7 +149,14 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
147
149
  return (
148
150
  <ScreenLayout testID="settings-screen" hideScrollIndicator>
149
151
  {/* Header with Close Button */}
150
- <View style={[styles.header, { borderBottomColor: theme.colors.borderLight }]}>
152
+ <View style={[
153
+ styles.header,
154
+ {
155
+ borderBottomColor: theme.colors.borderLight,
156
+ backgroundColor: theme.colors.surface,
157
+ paddingTop: insets.top,
158
+ }
159
+ ]}>
151
160
  <AtomicText type="headlineLarge" style={{ color: theme.colors.textPrimary, flex: 1 }}>
152
161
  {t('navigation.settings') || 'Settings'}
153
162
  </AtomicText>
@@ -237,11 +246,14 @@ const styles = StyleSheet.create({
237
246
  alignItems: 'center',
238
247
  justifyContent: 'space-between',
239
248
  paddingHorizontal: 16,
240
- paddingVertical: 12,
249
+ paddingBottom: 12,
250
+ paddingTop: 12,
241
251
  borderBottomWidth: 1,
252
+ zIndex: 1000,
242
253
  },
243
254
  closeButton: {
244
- padding: 4,
255
+ padding: 8,
256
+ marginLeft: 8,
245
257
  },
246
258
  });
247
259