Closed mirko77 closed 8 years ago
@mirko77 When you mount the toaster, if you use this -
var ToastMessageFactory = React.createFactory(ReactToastr.ToastMessage.animation)
It will not work. You have to use
var ToastMessageFactory = React.createFactory(ReactToastr.ToastMessage.jQuery)
This is because, the fadeIn and fadeOut are defined inside jQueryMixin file.
Hope this was helpful!
Kaushik.
Thanks @RangarajKaushikSundar , I suppose that will require jQuery as a dependency defined somewhere? Otherwise, I get jQueryMixin.js:74 Uncaught (in promise) ReferenceError: jQuery is not defined(…)
also, I am using the latest React with ES6 therefore no mixins, no getDefaultProps etc...
edit: adding jQuery I get jQueryMixin.js:14 Uncaught (in promise) TypeError: $node[props.showMethod] is not a function(…)
I solved it passing:
showAnimation: 'animated fadeIn',
hideAnimation: 'animated fadeOut'
Hi there,
how do I change the toast options?
I tried:
but the animation is always the bouncing one, not the fade one.
Timeout options seem to work, though.