-
|
Hey everyone, I have the following setup: a pure ts package containing theme (colors, breakpoints, typography & more) all are plain objects. Then I have a UI package with react native components where I want to use unistyles. Lastly I have multiple apps that I want to be able to use both packages, and to have unistyles theme work across all of them. I couldn't find a way to get unistyles to work that way. The theme never gets the correct type across the monorepo... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This is TS only issue or it doesn't work at all? |
Beta Was this translation helpful? Give feedback.
-
|
For anyone who encounters this issue. I'm not entirely sure what exactly caused it on my end but it was related to the way I built the packages. |
Beta Was this translation helpful? Give feedback.
For anyone who encounters this issue. I'm not entirely sure what exactly caused it on my end but it was related to the way I built the packages.
I ended up using @jordmccord 's tsconfig and rebuilt my packages then it finally worked.
You can see the ts config here: https://github.com/utilitywarehouse/design-systems/blob/main/packages/native-ui/tsconfig.json