@umituz/react-native-settings 4.23.59 → 4.23.60

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.23.59",
3
+ "version": "4.23.60",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -29,11 +29,7 @@ export class SettingsService {
29
29
  }
30
30
 
31
31
  async resetSettings(userId: string): Promise<SettingsResult<void>> {
32
- // Repository getSettings handles returning defaults if not found,
33
- // but here we want to explicitly reset.
34
- // We can just delete and get again.
35
- await this.repository.deleteSettings(userId);
36
- return this.repository.getSettings(userId) as unknown as SettingsResult<void>;
32
+ return this.repository.deleteSettings(userId);
37
33
  }
38
34
  }
39
35
 
@@ -4,9 +4,7 @@
4
4
  */
5
5
 
6
6
  import React from "react";
7
- import { View, StatusBar, StyleSheet } from "react-native";
8
7
  import {
9
- useAppDesignTokens,
10
8
  ScreenLayout,
11
9
  useAppNavigation,
12
10
  } from "@umituz/react-native-design-system";
@@ -73,7 +71,6 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
73
71
  gamificationConfig,
74
72
  }) => {
75
73
  const navigation = useAppNavigation();
76
- const tokens = useAppDesignTokens();
77
74
 
78
75
  const normalizedConfig = normalizeSettingsConfig(config);
79
76
  const features = useFeatureDetection(normalizedConfig, navigation, featureOptions);
@@ -103,9 +100,3 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
103
100
  </ScreenLayout>
104
101
  );
105
102
  };
106
-
107
- const styles = StyleSheet.create({
108
- container: {
109
- flex: 1,
110
- },
111
- });