gluestack-ui
gluestack-ui copied to clipboard
Toast not showing on latest versions
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.
I am on the latest version of expo and expo-router, expo-doctor runs fine with no issues found.
Thanks for the help.
@DavidAmyot Thanks fore reporting this. We'll have a look.
@surajahmed any update on this?
+1 👀
i have the same problem with react native cli
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 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.
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.
Using @gluestack-ui/config 1.1.17 and @gluestack-ui/themed 1.1.12 Toast works like defined in documentation.
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.
Hey, still not working on gluestack v2, any idea? I have all the dependencies updated
still not working on gluestack v2
Expo, Nativewind and Gluestack UI but the toast component not showed: