Closed tommy141x closed 1 month ago
hi @tommy141x thanks for reporting the issue. We will have a look.
Hey @tommy141x , I've checked the repo this, That you've provided the issue is not due to the conditional styling in input , that is due to the wrong way of styling. ie.., ring-2
will not work on native it will only work on web. Please check this for knowing more about these compatability from nativewind. Please use these stylings web only , web:ring-2
this will not break on native.
Description
Using states to style the input component on mobile causes a render error with NavigationStateContext, specifically:
Repo Link
https://github.com/tommy141x/chatly/tree/gluestack-bug
Steps to reproduce
chatly-client
folderbun install
gluestack-ui Version
0.7.5
Platform
Additional Information
While this could reveal some issue with Expo Router, doing this same thing elsewhere on other components functions properly, and I found that commenting out the Input component with the state styling in it will resolve the crash.
Code that triggers the crash:
Edit:
I also found that the crash can be triggered without states, simply change the styling manually and save, hot refresh will trigger the crash on iOS as well.