From 2cf00e933e09c5ce8e138c36188c0123e5100abe Mon Sep 17 00:00:00 2001 From: bang9 Date: Fri, 2 Feb 2024 01:45:23 +0900 Subject: [PATCH] fix: use ComponentType instead of function structure in CommonComponent type --- packages/uikit-react-native/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;