react-native-toast-notifications
react-native-toast-notifications copied to clipboard
toast.show is not a function (it is undefined)]
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 |