|
1 | 1 | import React, { useEffect } from 'react'; |
2 | | -import { LogBox, Platform, useColorScheme } from 'react-native'; |
| 2 | +import { DevSettings, LogBox, Platform, useColorScheme } from 'react-native'; |
3 | 3 | import { createDrawerNavigator } from '@react-navigation/drawer'; |
4 | 4 | import { DarkTheme, DefaultTheme, NavigationContainer } from '@react-navigation/native'; |
5 | 5 | import { createStackNavigator } from '@react-navigation/stack'; |
6 | 6 | import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-context'; |
7 | | -import { Chat, OverlayProvider, ThemeProvider, useOverlayContext } from 'stream-chat-react-native'; |
| 7 | +import { |
| 8 | + Chat, |
| 9 | + OverlayProvider, |
| 10 | + QuickSqliteClient, |
| 11 | + ThemeProvider, |
| 12 | + useOverlayContext, |
| 13 | +} from 'stream-chat-react-native'; |
8 | 14 | import messaging from '@react-native-firebase/messaging'; |
9 | 15 | import notifee, { EventType } from '@notifee/react-native'; |
10 | 16 | import { AppContext } from './src/context/AppContext'; |
@@ -34,6 +40,11 @@ import type { StreamChat } from 'stream-chat'; |
34 | 40 | LogBox.ignoreLogs(["Seems like you're using an old API"]); |
35 | 41 | LogBox.ignoreLogs(['Each child in a list should have a unique']); |
36 | 42 |
|
| 43 | +DevSettings.addMenuItem('Reset local DB (offline storage)', () => { |
| 44 | + QuickSqliteClient.resetDB(); |
| 45 | + console.info('Local DB reset'); |
| 46 | +}); |
| 47 | + |
37 | 48 | import type { |
38 | 49 | StackNavigatorParamList, |
39 | 50 | StreamChatGenerics, |
|
0 commit comments