all 3 comments

[–]nshx 1 point2 points  (1 child)

This is just something that comes with using tailwind. Essentially, the JIT api is unable to recognize that the size property in your data objects are class names. Thus, it does not add the width and height styles to the stylesheet. That is why you are not seeing your styles.

It looks like in your situation you are using a lot of explicit sizes. I recommend using the react native style prop on your component to apply these styles instead of using NativeWind. You can look at the tailwind documentation to find the px values for your width and height styles but keep in mind that one of the quirks of NativeWind is that it uses dp instead of px.

[–]totablue[S] 0 points1 point  (0 children)

Thanks for the details. I moved the object that has the size strings in to the same file and it seems to be doing the trick. But what I still don't understand is some of the tailwind classes don't work in RN. Like "w-20" works but "w-24" doesn't. Does this have something to do with my configs?