Home > OS >  Styling React Native?
Styling React Native?

Time:04-21

I'm usually using Bootstrap for my web project and since I'm new in React Native I'm not sure from where to start when it comes to the styling. Are you guys doing everything from scratch or you're using some UI library? I saw a few available, but they seem too heavy for a small app. Thanks!

CodePudding user response:

IMHO, don't model your styling based on your Web Dev practices, I've seen someone use styled components on RN and it's doing more harm than good, like harder-to-read interpolated styles.

I suggest using a UI library and theming library instead, to reduce styling boilerplates.

Here are the commonly used ones:

  1. react-native-elements most popular with theming support
  2. react-native-paper material design
  3. @shopify/restyle for theming
  4. react-native-animated for animations
  • Related