styled-components / typescript-styled-plugin

TypeScript server plugin that adds intellisense to styled component css strings
MIT License
76 stars 7 forks source link

`styled-components/native` support #15

Closed Aleuck closed 1 year ago

Aleuck commented 1 year ago

Hello there,

Firstly, thank for the creator and all contributors. This plugin helps me a lot.

Where I work we use styled-components either on react for the web as well as in react-native. In react native there is a different set of "CSS" properties that can be used. Some are the same, many are missing and there are some extras.

Would it be possible to add an configuration option (or autodetect) to switch on a react native "CSS" mode so it would autocomplete and validade for these different properties.

There would be two options:

  1. Plugin configuration in workspace settings (preffered); or
  2. Autodetect when importing from 'styled-components/native' (nice to have, but config would override).

    Thank you very much for your time reading and maybe considering my proposal.