---
title: "Reusing Code with React Native Packages at Shopify"
description: "Shopify consolidated shared React Native code (login, foundational blocks) across apps like Shop, Inbox and Point of Sale into a monorepo of npm packages rather than many separate repos, mainly to cut maintenance costs."
url: "https://swe.quest/articles/reusing-code-with-react-native-packages-at-shopify-881b73cbad48dfac"
canonical: "https://shopify.engineering/react-native-packages-shopify"
source: "Shopify Engineering"
published: "2021-09-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["react","mobile","build-systems","developer-productivity","version-control"]
---

# Reusing Code with React Native Packages at Shopify

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-09-29, 9 min read, Case study. Original: [https://shopify.engineering/react-native-packages-shopify](https://shopify.engineering/react-native-packages-shopify)

## Summary

Shopify consolidated shared React Native code (login, foundational blocks) across apps like Shop, Inbox and Point of Sale into a monorepo of npm packages rather than many separate repos, mainly to cut maintenance costs. The setup combines TypeScript project references, Yarn Workspaces, Lerna for independent versioning and publishing, root-level Babel/Jest/ESLint configs, and a fixture app with custom Metro, Babel and Podfile config for hot reloading local packages. A PlopJS template generates new packages with auto-generated CI pipelines that rebuild only changed packages and their dependents, and a Gatsby site auto-generates docs from package.json metadata. Since June 2020 the repo has produced 17 packages, 10 contributed by product teams. The team is now splitting into a few thematic monorepos and plans to automate releases with conventional commits.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)

## Prerequisites

- React Native basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- npm packaging
- TypeScript configuration ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

React Native, Lerna, Yarn Workspaces, TypeScript project references, Metro, PlopJS, Gatsby, CocoaPods

## Related posts

- [Five years of React Native at Shopify](https://swe.quest/articles/five-years-of-react-native-at-shopify-84f013b1c431ce8f.md): Shopify Engineering · 2025-01-13 · Easy · 9 min read · React, Mobile, Developer productivity, Engineering management
  After five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work.
- [From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience](https://swe.quest/articles/from-ruby-to-node-overhauling-shopify-s-cli-for-a-better-developer-experience-c31f4bbd707f942e.md): Shopify Engineering · 2023-01-10 · Medium · 12 min read · Developer tools, TypeScript, JavaScript, Refactoring & migrations, Testing
  Shopify rewrote its CLI from Ruby to TypeScript on Node to reduce system requirements, unify the Theme, App and Hydrogen workflows, and stay easy for internal teams to contribute to.
- [Migrating Shop app from React Native to native](https://swe.quest/articles/migrating-shop-app-from-react-native-to-native-d251eff5b6600925.md): Shopify Engineering · 2026-09-10 · Medium · 6 min read · Mobile, React, AI for coding, Refactoring & migrations, Performance engineering
  Shopify rebuilt the Shop app from React Native into native Swift/SwiftUI and Kotlin/Jetpack Compose in 12 weeks, with coding agents porting features using the existing React Native app as a reference.
- [Management of Native Code and React Native at Shopify](https://swe.quest/articles/management-of-native-code-and-react-native-at-shopify-a1da81505efaf180.md): Shopify Engineering · 2021-04-16 · Medium · 8 min read · Mobile, React, Java & JVM, Performance engineering
  Shopify's Point of Sale team kept complex UI such as a draggable, reorderable grid of hundreds of buttons in React Native, fixing performance with fewer re-renders, lazy rendering, memoization and Reanimated 2.
- [Native is now the future of mobile at Shopify](https://swe.quest/articles/native-is-now-the-future-of-mobile-at-shopify-4bc17172ea398962.md): Shopify Engineering · 2026-09-10 · Easy · 10 min read · Mobile, AI for coding, React, Refactoring & migrations, AI agents
  Shopify is moving its mobile apps from React Native back to native Swift and Kotlin because coding agents have cut the cost of building and keeping features in parity across two platforms, while native still gives closer access to platform capabilities and first-party tooling.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
