-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Description
hello ,im use react-native-easy-toast 2.3.0 in my project, and use the style property get some error:
TS2769: No overload matches this call. Overload 1 of 2, '(props: ToastComponentProps | Readonly<ToastComponentProps>): Toast', gave the following error. Type '{ ref: (toastRef: Toast) => void; style: { backgroundColor: string; }; textStyle: TextStyle; position: ToastPositionType; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Toast> & Readonly<ToastComponentProps>'. Property 'style' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Toast> & Readonly<ToastComponentProps>'. Overload 2 of 2, '(props: ToastComponentProps, context: any): Toast', gave the following error. Type '{ ref: (toastRef: Toast) => void; style: { backgroundColor: string; }; textStyle: TextStyle; position: ToastPositionType; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Toast> & Readonly<ToastComponentProps>'. Property 'style' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Toast> & Readonly<ToastComponentProps>'.
i find the ToastComponentProps interface:
interface ToastComponentProps {
position?: "bottom" | "center" | "top";
textStyle?: {};
positionValue?: number;
fadeInDuration?: number;
fadeOutDuration?: number;
opacity?: number;
}
no style property
Metadata
Metadata
Assignees
Labels
No labels