stitches-native icon indicating copy to clipboard operation
stitches-native copied to clipboard

Text styles shows up in view styles

Open norman-ags opened this issue 4 years ago • 4 comments

When View is used in styled, the autocompletion shows Text styles, see screenshot below:

image

I think it should hide those styles similar to native view: image

norman-ags avatar Sep 29 '21 10:09 norman-ags

@norman-ags thanks for bringing this up 😊

This is definitely something I would like to improve but unfortunately the TypeScript side is very hard to modify because of the complexity of the types and my unfamiliarity with them. The types are basically copied from the main Stitches repo and modified to work with React Native so it's quite challenging to make modifications to them without breaking them.

I'm quite sure the source of this is the ReactNativeProperties type that wraps all the possible RN CSS properties into one type but I'm not sure how to break it apart and how to modify the complex types to take this into account. I can try to investigate this but it would be super helpful if someone from the Stitches team or someone that is very good at TS could give a hand/hint about this 🙂

Temzasse avatar Oct 13 '21 12:10 Temzasse

Thanks @Temzasse. I would like to help you out but I'm just new on TS.

norman-ags avatar Oct 18 '21 12:10 norman-ags

@norman-ags did you by any chance have the time to investigate this issue any further? 🙂

I have been tackling some other TS issues but I haven't been able to resolve this one just yet due to lack of time 🙁

Temzasse avatar Oct 31 '21 13:10 Temzasse

Sorry for the late reply. Same here, lack of time.

norman-ags avatar Nov 16 '21 02:11 norman-ags