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
{{ message }}
Repository navigation
Nativewind with react-native-skia causing non-whitespace character found error #243
Describe the bug
We are using nativewind v5 preview 2 and @shopify/react-native-skia version 2.2.12. Before installing react native skia everything worked fine, however after installing we got this error: [Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "%"]. This error only comes up when we have elements with className properties. But after removing nativewind and react-native-css the error disappears.
⚠️Important: Issues without a valid reproduction link will not be reviewed and will be automatically closed. Use the rn-new template to create a reproduction:
I investigated your repro. The crash is caused by ios:tracking-[-2%] compiling to letterSpacing: "-2%" (string). React Native's native layer can't parse the % suffix. This is the same root cause as #216 where scale-95 emits "95%" instead of 0.95. Both stem from parseLengthin the compiler emitting percentage strings for properties that require numeric values. The fix needs to go in react-native-css's compiler with context-aware percentage handling.
Subsequently, I'm closing this as duplicate of #216.
Activity
danstepanov commentedon Mar 30, 2026
I investigated your repro. The crash is caused by
ios:tracking-[-2%]compiling toletterSpacing: "-2%"(string). React Native's native layer can't parse the%suffix. This is the same root cause as #216 wherescale-95emits"95%"instead of0.95. Both stem fromparseLengthin the compiler emitting percentage strings for properties that require numeric values. The fix needs to go in react-native-css's compiler with context-aware percentage handling.Subsequently, I'm closing this as duplicate of #216.