toastify-react-native
toastify-react-native copied to clipboard
Export ToastConfig interface
Hi,
Could you please export the ToastConfig interface in order to type our customization ?
Hi,
the library already provides a way to override these fields — you just need to pass them correctly to the ToastManager.
For example:
<ToastManager
config={toastConfig}
backgroundColor={{
error: 'red',
success: 'green',
info: 'black',
warn: 'orange',
default: 'blue',
}}
/>
You can also override any other styles for the default toast types in a similar way
I know, I'm asking to have access to the Type. :)
You can get it from "toastify-react-native/utils/interfaces"