toastify-react-native icon indicating copy to clipboard operation
toastify-react-native copied to clipboard

Export ToastConfig interface

Open jbcrestot opened this issue 8 months ago • 3 comments

Hi,

Could you please export the ToastConfig interface in order to type our customization ?

Image

jbcrestot avatar May 02 '25 15:05 jbcrestot

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

Foxxiblak avatar May 06 '25 18:05 Foxxiblak

I know, I'm asking to have access to the Type. :)

jbcrestot avatar May 18 '25 14:05 jbcrestot

You can get it from "toastify-react-native/utils/interfaces"

tannerbaum avatar Jul 23 '25 15:07 tannerbaum