react-native-root-toast
react-native-root-toast copied to clipboard
allow using react component passed on props (ignores message)
This PR allows to use a custom component instead a message on the toast. Its based on the very last version of the component and the code footprint is really small.
Usage:
Just like now, but if you add component: <View...> to the options object, the modal ignores the message and renders the component instead, applying the rest of regular options to the parent Animated.View like duration, and even contentStyle.