calintamas / react-native-toast-message

Animated toast message component for React Native
MIT License
1.69k stars 261 forks source link

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

Closed badalsaibo closed 8 months ago

badalsaibo commented 9 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 8 months ago

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

<Toast visibilityTime={4000} />