Skip to content

Commit a0b617e

Browse files
committed
fix: remove flipper debugger
1 parent 7325b99 commit a0b617e

File tree

1 file changed

+49
-53
lines changed
  • examples/TypeScriptMessaging

1 file changed

+49
-53
lines changed

examples/TypeScriptMessaging/App.tsx

Lines changed: 49 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
Channel,
1010
ChannelList,
1111
Chat,
12-
DebugContextProvider,
1312
MessageInput,
1413
MessageList,
1514
OverlayProvider,
@@ -23,7 +22,6 @@ import {
2322

2423
import { useStreamChatTheme } from './useStreamChatTheme';
2524
import { GestureHandlerRootView } from 'react-native-gesture-handler';
26-
import { useFlipper } from 'stream-chat-react-native-devtools';
2725

2826
LogBox.ignoreAllLogs(true);
2927

@@ -238,57 +236,55 @@ const App = () => {
238236
}, []);
239237

240238
return (
241-
<DebugContextProvider useFlipper={useFlipper}>
242-
<NavigationContainer
243-
theme={{
244-
colors: {
245-
...(colorScheme === 'dark' ? DarkTheme : DefaultTheme).colors,
246-
},
247-
dark: colorScheme === 'dark',
248-
}}
249-
>
250-
<AppContext.Provider value={{ channel, setChannel, setThread, thread }}>
251-
<GestureHandlerRootView style={{ flex: 1 }}>
252-
<OverlayProvider<StreamChatGenerics>
253-
bottomInset={bottom}
254-
i18nInstance={streami18n}
255-
value={{ style: theme }}
256-
>
257-
<Chat client={chatClient} i18nInstance={streami18n} enableOfflineSupport>
258-
{clientReady && (
259-
<Stack.Navigator
260-
initialRouteName='ChannelList'
261-
screenOptions={{
262-
headerTitleStyle: { alignSelf: 'center', fontWeight: 'bold' },
263-
}}
264-
>
265-
<Stack.Screen
266-
component={ChannelScreen}
267-
name='Channel'
268-
options={() => ({
269-
headerBackTitle: 'Back',
270-
headerRight: EmptyHeader,
271-
headerTitle: channel?.data?.name,
272-
})}
273-
/>
274-
<Stack.Screen
275-
component={ChannelListScreen}
276-
name='ChannelList'
277-
options={{ headerTitle: 'Channel List' }}
278-
/>
279-
<Stack.Screen
280-
component={ThreadScreen}
281-
name='Thread'
282-
options={() => ({ headerLeft: EmptyHeader })}
283-
/>
284-
</Stack.Navigator>
285-
)}
286-
</Chat>
287-
</OverlayProvider>
288-
</GestureHandlerRootView>
289-
</AppContext.Provider>
290-
</NavigationContainer>
291-
</DebugContextProvider>
239+
<NavigationContainer
240+
theme={{
241+
colors: {
242+
...(colorScheme === 'dark' ? DarkTheme : DefaultTheme).colors,
243+
},
244+
dark: colorScheme === 'dark',
245+
}}
246+
>
247+
<AppContext.Provider value={{ channel, setChannel, setThread, thread }}>
248+
<GestureHandlerRootView style={{ flex: 1 }}>
249+
<OverlayProvider<StreamChatGenerics>
250+
bottomInset={bottom}
251+
i18nInstance={streami18n}
252+
value={{ style: theme }}
253+
>
254+
<Chat client={chatClient} i18nInstance={streami18n} enableOfflineSupport>
255+
{clientReady && (
256+
<Stack.Navigator
257+
initialRouteName='ChannelList'
258+
screenOptions={{
259+
headerTitleStyle: { alignSelf: 'center', fontWeight: 'bold' },
260+
}}
261+
>
262+
<Stack.Screen
263+
component={ChannelScreen}
264+
name='Channel'
265+
options={() => ({
266+
headerBackTitle: 'Back',
267+
headerRight: EmptyHeader,
268+
headerTitle: channel?.data?.name,
269+
})}
270+
/>
271+
<Stack.Screen
272+
component={ChannelListScreen}
273+
name='ChannelList'
274+
options={{ headerTitle: 'Channel List' }}
275+
/>
276+
<Stack.Screen
277+
component={ThreadScreen}
278+
name='Thread'
279+
options={() => ({ headerLeft: EmptyHeader })}
280+
/>
281+
</Stack.Navigator>
282+
)}
283+
</Chat>
284+
</OverlayProvider>
285+
</GestureHandlerRootView>
286+
</AppContext.Provider>
287+
</NavigationContainer>
292288
);
293289
};
294290

0 commit comments

Comments
 (0)