vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

Improve intellisense for styles #139

Closed yvbeek closed 4 years ago

yvbeek commented 4 years ago

Improves the type declarations to provide some autocomplete when you define the styles and when you use them.

Note: this will likely break code

If we want to further improve this, I believe the media-query mechanism would require an overhaul. The stylesheet definition is so dynamic at this point, that it becomes very hard to instruct the TypeScript transcompiler on what's correct and what isn't.

See https://github.com/vitalets/react-native-extended-stylesheet/issues/118 for more information.

rafaelsaback commented 4 years ago

Thanks for that one @yvbeek! I have already switched to your fork and I'm using it. I hope the PR gets merged soon :wink:

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.