Skip to content

Commit 3bd5dfc

Browse files
committed
fix: replace default loading indicator to null
1 parent f692d62 commit 3bd5dfc

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

package/src/components/Chat/Chat.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Image, Platform } from 'react-native';
33

44
import type { Channel, StreamChat } from 'stream-chat';
55

6-
import { LoadingIndicator as LoadingIndicatorDefault } from './components/LoadingIndicator';
76
import { useAppSettings } from './hooks/useAppSettings';
87
import { useCreateChatContext } from './hooks/useCreateChatContext';
98
import { useIsOnline } from './hooks/useIsOnline';
@@ -106,7 +105,7 @@ export type ChatProps<
106105
*
107106
* This can be used during the phase when db is not initialised.
108107
*/
109-
LoadingIndicator?: React.ComponentType;
108+
LoadingIndicator?: React.ComponentType | null;
110109
/**
111110
* You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)
112111
*
@@ -150,7 +149,7 @@ const ChatWithContext = <
150149
enableOfflineSupport = false,
151150
i18nInstance,
152151
ImageComponent = Image,
153-
LoadingIndicator = LoadingIndicatorDefault,
152+
LoadingIndicator = null,
154153
resizableCDNHosts = ['.stream-io-cdn.com'],
155154
style,
156155
} = props;

package/src/components/Chat/components/LoadingIndicator.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)