@umituz/react-native-settings 1.2.1 → 1.3.1

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.2.1",
3
+ "version": "1.3.1",
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",
@@ -125,6 +125,17 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
125
125
  navigation.navigate('Notifications' as never);
126
126
  };
127
127
 
128
+ // Debug: Log features to help diagnose empty screen issues
129
+ /* eslint-disable-next-line no-console */
130
+ if (__DEV__) {
131
+ console.log('[SettingsScreen] Features:', features);
132
+ console.log('[SettingsScreen] Config:', config);
133
+ console.log('[SettingsScreen] Navigation state:', navigation.getState());
134
+ }
135
+
136
+ // Check if any features are enabled
137
+ const hasAnyFeatures = features.appearance || features.notifications || features.about || features.legal;
138
+
128
139
  return (
129
140
  <ScreenLayout testID="settings-screen" hideScrollIndicator>
130
141
  {/* Appearance Section */}
@@ -184,6 +195,15 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
184
195
  )}
185
196
  </List.Section>
186
197
  )}
198
+
199
+ {/* Fallback: Show message if no features are enabled */}
200
+ {!hasAnyFeatures && (
201
+ <List.Section>
202
+ <List.Subheader style={{ color: theme.colors.textSecondary }}>
203
+ {t('settings.noOptionsAvailable') || 'No settings available'}
204
+ </List.Subheader>
205
+ </List.Section>
206
+ )}
187
207
  </ScreenLayout>
188
208
  );
189
209
  };