calintamas / react-native-toast-message

Animated toast message component for React Native
MIT License
1.73k stars 265 forks source link

How to override the default duration for the Toast at root level for all instances? #517

Closed badalsaibo closed 10 months ago

badalsaibo commented 11 months ago

Same as question. I don't want to go to each Toast.show and add a custom duration. Instead maybe set it somewhere in the toastConfig itself? Didn't find the documentation for this in the API

calintamas commented 10 months ago

visibilityTime can be passed as prop to the root Toast instance.

<Toast visibilityTime={4000} />