jpudysz / react-native-unistyles

Level up your React Native StyleSheet

Home Page:https://unistyl.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is this the way to get the InelliSense for styling?

Albert-Gao opened this issue · comments

Hi, I noticed that when writing the styles, there is no IntelliSense for the sub-object, I use the as hack to workaround it, is it the suggested way or i am missing something? Thanks :)

**
image
**

Can you confirm that you are running version 1.0.0-rc.1?

In some older beta versions, there was an issue with TS hints in nested objects.

yes, i am using rc1, prior rc1, this as cast causes a type error, it is solved after upgrading to rc1, but still no IntelliSense if no as

image

Can you check the examples folder and reproduce it? I can see IntelliSense everywhere:

Breakpoints:

breakpoint

Objects with theme:

object

Objects without theme:

image

Thanks mate, I know the problem, once updated to rc1, the createStyles changed to createStyleSheet, now all works :D

No problem 🙏

Let me know if you encounter any other issues