“At Revelry, we’ve been building with React for a long time – since early developer betas…”
In many React Native projects, styles have the tendency to get messy very quickly. That’s because in React Native, every component accepts a “style” prop where these are defined. This encourages developers to define styles within individual component files, or worse, to write inline styles on the components themselves. Defining styles and writing inline styles will inevitably lead to a variety of issues around maintenance, consistency, and organization.
Since we refrain from writing styles in our components, a nice approach is to create a folder for each component or set of components. This implementation affords us a couple of good practices.
If you have ever done mobile development in React Native, chances are you have used a TextInput. And, you’ve probably also used the numerical version of TextInput to create a…