You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue was reported on Discord.
When attempting to use the Link component from Expo Router with the asChild flag, it breaks the C++ style and throws the Unistyles not bound! error.
Using an array helps prevent the error, but it doesn't apply the styles. This happens because Unistyle is -- once again, broken.
To resolve this, we need to implement a fallback mechanism for the Style is not bound! error, allowing us to manually look for the ShadowNode.
Steps to Reproduce
Bootstrap Expo Router app
Add Link with asChild prop
Move styles to Pressable
Observe Unistyle is not bound! error.
Snack or Repository Link (Optional)
No response
Unistyles Version
3.0.0-beta.2
React Native Version
0.76.0
Platforms
iOS
Expo
Yes
The text was updated successfully, but these errors were encountered:
jpudysz
changed the title
[v3] - Expo Link with asChild is breaking Unistyles C++ state
[v3] - Expo Link with asChild breaks Unistyles C++ state
Dec 14, 2024
Description
The issue was reported on Discord.
When attempting to use the
Link
component fromExpo Router
with theasChild
flag, it breaks theC++ style
and throws theUnistyles not bound!
error.Using an array helps prevent the error, but it doesn't apply the styles. This happens because
Unistyle
is -- once again, broken.To resolve this, we need to implement a fallback mechanism for the
Style is not bound!
error, allowing us to manually look for theShadowNode
.Steps to Reproduce
Link
withasChild
propPressable
Observe
Unistyle is not bound!
error.Snack or Repository Link (Optional)
No response
Unistyles Version
3.0.0-beta.2
React Native Version
0.76.0
Platforms
iOS
Expo
Yes
The text was updated successfully, but these errors were encountered: