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

Toast is displayed forever, not hiding after visibilityTime expire...

Open shubham26062002 opened this issue 1 year ago • 22 comments

import { FALLBACK_ERROR_MESSAGE } from "@/constants" import { hono } from "@/lib/hono" import { useMutation } from "@tanstack/react-query" import { Link } from "expo-router" import { Pressable, ScrollView, Text } from "react-native" import { SafeAreaView } from "react-native-safe-area-context" import Toast from "react-native-toast-message"

const GetStartedScreen = () => { const getArticlesMutation = useMutation({ ... onError: (error) => Toast.show({ type: "error", text1: "Error", text2: error.message || FALLBACK_ERROR_MESSAGE, autoHide: true, visibilityTime: 3000, position: "top", avoidKeyboard: true, swipeable: true, }), ... })

return ( ... ) }

export default GetStartedScreen

Well its working for me that it is displaying toast on error but as you can see i have autoHide and visibilityTime set it is not hiding...

shubham26062002 avatar Sep 14 '25 11:09 shubham26062002

I'm having the same issue after upgrading from react-native 0.79.5 to 0.81.4

AmirHalabi avatar Sep 15 '25 05:09 AmirHalabi

same here

danieldaneshi avatar Sep 15 '25 08:09 danieldaneshi

i have same issue also

ShabanElmoogy avatar Sep 15 '25 20:09 ShabanElmoogy

same issue

bertanifede avatar Sep 17 '25 12:09 bertanifede

same here

lucky4young avatar Sep 17 '25 18:09 lucky4young

Same here

NandoFilter avatar Sep 18 '25 02:09 NandoFilter

Same here, possibly related to https://github.com/calintamas/react-native-toast-message/issues/583

Ken-vdE avatar Sep 18 '25 08:09 Ken-vdE

same here

byuul avatar Sep 18 '25 08:09 byuul

Same here, expo SDK version 53 works fine for me.

christoph-freimuth avatar Sep 22 '25 09:09 christoph-freimuth

Same here with SDK 54

WillyReyno avatar Sep 22 '25 14:09 WillyReyno

Same issue, expo SDK version 53 works fine for me.

ofernand21 avatar Oct 07 '25 11:10 ofernand21

Same here with SDK 54

mrtncode avatar Oct 08 '25 08:10 mrtncode

Same issue for me

jatin263 avatar Oct 12 '25 18:10 jatin263

Same issue for me

yangke2018 avatar Oct 22 '25 06:10 yangke2018

is there any update on this?

caglardurmus avatar Oct 24 '25 13:10 caglardurmus

Same issue for me in

"react-native": "0.81.4" "react-native-toast-message": "^2.3.3"

jigneshorangeapp avatar Nov 18 '25 12:11 jigneshorangeapp

Same issue,

expo 54 "react-native": "0.81.5", "react-native-toast-message": "^2.3.3",

wish-me-luck avatar Nov 23 '25 04:11 wish-me-luck

Any updates on this? Definitely just an expo 54 issue.

IAmInControll avatar Jan 12 '26 17:01 IAmInControll

Any update on this?

santigp258 avatar Jan 23 '26 21:01 santigp258

Any update on this?

To avoid trying to fix this, making a fork, etc. I just changed to https://github.com/gunnartorfis/sonner-native#readme, and works good for me

santigp258 avatar Jan 24 '26 16:01 santigp258