Skip to content

Commit

Permalink
fix: replace default loading indicator to null
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Dec 3, 2024
1 parent f692d62 commit 3bd5dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
5 changes: 2 additions & 3 deletions package/src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Image, Platform } from 'react-native';

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

import { LoadingIndicator as LoadingIndicatorDefault } from './components/LoadingIndicator';
import { useAppSettings } from './hooks/useAppSettings';
import { useCreateChatContext } from './hooks/useCreateChatContext';
import { useIsOnline } from './hooks/useIsOnline';
Expand Down Expand Up @@ -106,7 +105,7 @@ export type ChatProps<
*
* This can be used during the phase when db is not initialised.
*/
LoadingIndicator?: React.ComponentType;
LoadingIndicator?: React.ComponentType | null;
/**
* 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)
*
Expand Down Expand Up @@ -150,7 +149,7 @@ const ChatWithContext = <
enableOfflineSupport = false,
i18nInstance,
ImageComponent = Image,
LoadingIndicator = LoadingIndicatorDefault,
LoadingIndicator = null,
resizableCDNHosts = ['.stream-io-cdn.com'],
style,
} = props;
Expand Down
16 changes: 0 additions & 16 deletions package/src/components/Chat/components/LoadingIndicator.tsx

This file was deleted.

0 comments on commit 3bd5dfc

Please sign in to comment.