You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of the toast should be based on what you provided in the app.js file <ToastProvider renderType={{ custom_toast1: CutomToast1Component, custom-toast2: CustomToast2Component, }} > <NavigationScreens SplashScreen={SplashScreen} /> </NavigationContainer> </ToastProvider>
so if i want to show the custom toast number 1 I should call it like so onPress={() => toast.show('test toast custom', { type: "custom_toast1", animationDuration: 100, data: { title: "Toast custom" } })
Discussed in #193
Originally posted by juanpb1 August 28, 2024
onPress={() => toast.show('test toast custom', { type: "custom", animationDuration: 100, data: { title: "Toast custom" } })}
OR
onPress={() => toast.show('test toast custom', { type: "custom-toast", animationDuration: 100, data: { title: "Toast custom" } })}
Could anyone help me?
The text was updated successfully, but these errors were encountered: