Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure each style property is on its own line when inside StyleSheet.create() #319

Open
ftzi opened this issue Jun 23, 2022 · 1 comment

Comments

@ftzi
Copy link

ftzi commented Jun 23, 2022

I usually first add my component styles inline and on the same line, if I expect them to be simple and unique. If they get too complex or are reused, I transfer them to the StyleSheet.create() in the bottom of the code.

For example, just dropped { color: '#141C4D', fontFamily: F.SF_Pro_Text_Medium, fontSize: 15, paddingHorizontal: 10, paddingVertical: 10 } there. Then I have to put a new line after each property.

I would really like a rule to have all styles properties in their own lines to save me some time.

@boyuanjiang0-0
Copy link

you can use prettier to fo that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants