-
Notifications
You must be signed in to change notification settings - Fork 66
Unable to use interpolation in CSS #61
Comments
Thank you, I will investigate. |
Does this only happen when using |
Any variable would cause this issue because it didn't appear to get interpolated when it was consumed by toJSS(). A console.log(css) in there show this. If the string is encapsulated in brackets, it all works great.
Tagged template literals behave different with or without parentesis:
I don't have enough time to keep digging (and I can live with brackets), but maybe above info will make it obvious for you ^ |
@anzorb thank you so much for doing all the digging. Please test Add the following test:https://github.com/sabeurthabti/react-native-css/blob/a7ad812fbb346daae052b337467d71e1e3d46fee/test/rnc.test.js#L240 should be working as expected. |
Hi, Just for information, in the |
[email protected]
[email protected]
Android 7.1.1
code:
Error:
The text was updated successfully, but these errors were encountered: