gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

Toast not showing on latest versions

Open DavidAmyot opened this issue 1 year ago • 8 comments

Description

I expect the Toast component to show the toast, but it does not.

CodeSandbox/Snack link

No response

Steps to reproduce

No response

gluestack-ui Version

latest

Platform

  • [X] Expo
  • [ ] React Native CLI
  • [ ] Next
  • [ ] Web
  • [ ] Android
  • [ ] iOS

Other Platform

No response

Additional Information

Could not reproduce on Snack unfortunately. I am unsure if it's because of the expo version which is the latest on my project vs on Snack or if it's because I have expo-router v3 in my project.

I currently have @gluestack-ui/config 1.1.18 and @gluestack-ui/themed 1.1.22 and with those, the Toast does not work.

However, after trying out different older branches I had, I found out that with @gluestack-ui/config 1.1.17 and @gluestack-ui/themed 1.1.12, the Toast appears fine so I'm guessing the issue comes from one of the two.

image

I am on the latest version of expo and expo-router, expo-doctor runs fine with no issues found.

Thanks for the help.

DavidAmyot avatar Apr 19 '24 19:04 DavidAmyot

@DavidAmyot Thanks fore reporting this. We'll have a look.

surajahmed avatar Apr 30 '24 13:04 surajahmed

@surajahmed any update on this?

msschwartz avatar May 28 '24 12:05 msschwartz

+1 👀

JavanPoirier avatar May 28 '24 21:05 JavanPoirier

i have the same problem with react native cli

Rossella-Mascia-Neosyn avatar May 30 '24 10:05 Rossella-Mascia-Neosyn

Hey @JavanPoirier @Rossella-Mascia-Neosyn @msschwartz @DavidAmyot,

Currently our portal is based on context due to this it render behind expo-router. We are working towards a solid solution which will resolve this issues. We are working on improved version of toast which will take advantage of packages like react-native-z-view or native api's.

Viraj-10 avatar Jun 14 '24 06:06 Viraj-10

@Viraj-10 Any thoughts on how to solve this one? I'm running into this. Also running into a situation where if I try to use useToast inside of a gluestackv2 modal it crashes because the ToastContext is unavailable.

evelant avatar Jul 09 '24 15:07 evelant

I've just solved this problem by just rm yarn.lock and yarn install . But I'm not sure why this works.

My versions are below.

"@gluestack-style/react": "^1.0.22",
"@gluestack-ui/config": "^1.0.5",
"@gluestack-ui/themed": "^1.0.20",

I hope this will help.

YukiOmori avatar Jul 18 '24 08:07 YukiOmori

Using @gluestack-ui/config 1.1.17 and @gluestack-ui/themed 1.1.12 Toast works like defined in documentation.

villemuittari avatar Jul 23 '24 07:07 villemuittari

Hey @evelant @msschwartz @villemuittari @YukiOmori , Please use the latest versions of the packages always that should fix the minor issues you are facing. Closing this issue for now, please feel free to open this issue on any issues/ queries related to this context.

sra1kumar-NULL avatar Sep 27 '24 07:09 sra1kumar-NULL

Hey, still not working on gluestack v2, any idea? I have all the dependencies updated

acv-dancom avatar Jan 14 '25 11:01 acv-dancom

still not working on gluestack v2

Expo, Nativewind and Gluestack UI but the toast component not showed:

Image

Aszurar avatar Jan 29 '25 18:01 Aszurar