diff --git a/packages/uikit-react-native/src/types.ts b/packages/uikit-react-native/src/types.ts index 9a5d32de5..fc523db59 100644 --- a/packages/uikit-react-native/src/types.ts +++ b/packages/uikit-react-native/src/types.ts @@ -1,4 +1,4 @@ -import type { ErrorInfo, ReactNode } from 'react'; +import type { ComponentType, ErrorInfo, ReactNode } from 'react'; import type { SendbirdUser } from '@sendbird/uikit-utils'; @@ -17,7 +17,7 @@ export interface LocalCacheStorage { export type ErrorBoundaryProps = { error: Error; errorInfo: ErrorInfo; reset: () => void }; -export type CommonComponent
= (props: P & { children?: ReactNode }) => null | ReactNode; +export type CommonComponent
= ComponentType
; export type MentionedUser = { range: Range;