In my last post, I talked a little bit about React Native. Today, I'm here for a little rant about what I don't like about RN (or the reasons I will probably not use it again). These reasons may be somewhat biased towards how HTML and CSS work on the Web, but it reflects my opinion.
Let's get right into it:
Styling is a mess in React. This is the main problem I have with React. I love how it allows to create dynamic styles (using code to modify the styles) for the different components, however, I think it should be easier to apply the styles. For example, if there is two images in a view, it is required to go to both images and create a
style property with the style we want for the image. This is were in my opinion, React's styles could be better, something like CSS where you can reference multiple elements/components with a single rule-set, and specifying the affected elements much easier. I know that CSS can get messy really fast, however, if done smart and modular, it offers an easier way to style the elements, compared to RN, even though it does not allow those "dynamic styles".