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

Use style framework to write styles in React Native #95

Open
macaroni7 opened this issue May 12, 2023 · 1 comment
Open

Use style framework to write styles in React Native #95

macaroni7 opened this issue May 12, 2023 · 1 comment

Comments

@macaroni7
Copy link

macaroni7 commented May 12, 2023

Context

There has potential disadvantages of using StyleSheet in React Native include:

  • Limited support for dynamic styling based on props or state.
  • Limited set of styling properties compared to CSS.
  • Difficulty in reusing styles across multiple components.

Proposal

Consider to use style framework to write styles in React Native code bases. Some benefits to make the change:

  • Clean style codes for components
  • Easy to write reusable components

Options

  1. Tailwind CSS
    These are some articles comparing the stylesheet with Tailwind for writing the style codes in RN:
  1. Styled Components
@renie
Copy link
Contributor

renie commented Aug 9, 2023

This is totally not a priority, as the lack of such a tools was never a problem for any developer that have ever worked on the repo. But I don't see any problem on discussing it. And personally I would vote for something simpler as Styled Components. Maybe it could even be discussed on the next layout change.
Any ideas on this @owlsua ?

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