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

toast.show is not a function (it is undefined)]

Open shyammanek opened this issue 9 months ago • 6 comments

import { useToast } from "react-native-toast-notifications";

export default function Toast() {

const toast = useToast();

toast.show("Hello World");

}

Current behaviour

LOG error [TypeError: toast.show is not a function (it is undefined)]

Expected behaviour

Show Toast Notification

Code sample

For Syntax Highlighting check this link

Screenshots (if applicable)

What have you tried

Your Environment

software version
ios or android both
react-native 0.73.4
react-native-toast-notifications ^3.4.0
node
npm or yarn

shyammanek avatar May 08 '24 07:05 shyammanek