From ca8748e81e3a3e45e13636c6a1fe9ccb4149ae46 Mon Sep 17 00:00:00 2001 From: Andreas Allacher Date: Fri, 26 Nov 2021 07:16:10 +0100 Subject: [PATCH] Fixd type of message for Toast.show function. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 88c2647..f49733f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -41,7 +41,7 @@ declare module "react-native-root-toast"{ CENTER:number, } export default class Toast extends React.Component{ - static show:(message:string,options?:ToastOptions)=>any; + static show:(message:React.ReactNode,options?:ToastOptions)=>any; static hide:(toast:any)=>void; static durations:Durations; static positions:Positions;