Skip to content

Commit 2cf00e9

Browse files
committed
fix: use ComponentType instead of function structure in CommonComponent type
1 parent efe57e3 commit 2cf00e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/uikit-react-native/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ErrorInfo, ReactNode } from 'react';
1+
import type { ComponentType, ErrorInfo, ReactNode } from 'react';
22

33
import type { SendbirdUser } from '@sendbird/uikit-utils';
44

@@ -17,7 +17,7 @@ export interface LocalCacheStorage {
1717

1818
export type ErrorBoundaryProps = { error: Error; errorInfo: ErrorInfo; reset: () => void };
1919

20-
export type CommonComponent<P = {}> = (props: P & { children?: ReactNode }) => null | ReactNode;
20+
export type CommonComponent<P = {}> = ComponentType<P & { children?: ReactNode | undefined }>;
2121

2222
export type MentionedUser = {
2323
range: Range;

0 commit comments

Comments
 (0)