nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Sep 2, 2020·12 min read57

5 Ways to Improve Your React Native Styling Workflow - Shopify

In April, we announced Shop, our digital shopping assistant that brings together the best features of Arrive and Shop Pay. The Shop app started from our React Native codebase for our previous package tracking app Arrive, with every screen receiving a complete visual overhaul to fit the new branding. While our product designers worked on introducing a whole new design system that would decide the look and feel of the app, we on the engineering side took the initiative to evolve our thinking around how we work with styling of screens and components. The end-product became Restyle, our open source library that allowed us to move forward quickly and easily in our transformation from Arrive to Shop. I'll walk you through the styling best practices we learned through this process. They served as the guiding principles for the design of Restyle. However anyone working with a React app can benefit from applying these best practices, with or without using our library. The Questions We Needed to Answer We faced a number of problems with our current approach in Arrive, and these were the questions we needed to answer to take our styling workflow to the next level: With a growing team working in different countries and time zones, how do we make sure that the app keeps a consistent style throughout all of its different screens? What can we do to make it easy to style the app to look great on multiple different device sizes and formats? How do we allow the app to dynamically adapt its theme according to the user’s preferences, to support for example dark mode? Can we make working with styles in React Native a more enjoyable experience? With these questions in place, we came up with the following best practices that provided answers to them.  #1. Create a Design System A prerequisite for being able to write clean and consistent styling code is for the design of the app to be based on a clean and

FrontendMobile
Read original on shopify.engineering

Score breakdown

  • Technical depth81
  • Practical value60
  • Originality100
  • Writing quality100
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

Etsy — Code as Craft

Adopting Jetpack Compose for Etsy’s Android App

John Kalmi·Jan 28, 2025·6 min read
Shopify Engineering

Building Arrive's Confetti in React Native with Reanimated - Shopify

Apr 7, 2020·9 min read
Shopify Engineering

Five years of React Native at Shopify (2025) - Shopify

Jan 13, 2025·11 min read
Shopify Engineering

Management of Native Code and React Native at Shopify - Shopify

Apr 16, 2021·11 min read