react-native-root-toast icon indicating copy to clipboard operation
react-native-root-toast copied to clipboard

allow using react component passed on props (ignores message)

Open ivnnv opened this issue 6 years ago • 0 comments

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.

ivnnv avatar Oct 23 '19 19:10 ivnnv