We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe57e3 commit 2cf00e9Copy full SHA for 2cf00e9
packages/uikit-react-native/src/types.ts
@@ -1,4 +1,4 @@
1
-import type { ErrorInfo, ReactNode } from 'react';
+import type { ComponentType, ErrorInfo, ReactNode } from 'react';
2
3
import type { SendbirdUser } from '@sendbird/uikit-utils';
4
@@ -17,7 +17,7 @@ export interface LocalCacheStorage {
17
18
export type ErrorBoundaryProps = { error: Error; errorInfo: ErrorInfo; reset: () => void };
19
20
-export type CommonComponent<P = {}> = (props: P & { children?: ReactNode }) => null | ReactNode;
+export type CommonComponent<P = {}> = ComponentType<P & { children?: ReactNode | undefined }>;
21
22
export type MentionedUser = {
23
range: Range;
0 commit comments