---
title: "Building an App Clip with React Native"
description: "Shopify built an iOS App Clip for the Shop app in React Native under the 10MB size cap, aimed at reducing drop-off between the checkout \"Thank you\" page and order tracking."
url: "https://swe.quest/articles/building-an-app-clip-with-react-native-57754c8d88bbc686"
canonical: "https://shopify.engineering/building-app-clip-react-native"
source: "Shopify Engineering"
published: "2021-11-26"
difficulty: "medium"
kind: "Case study"
reading_minutes: 15
tags: ["mobile","react","ci-cd"]
---

# Building an App Clip with React Native

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-11-26, 15 min read, Case study. Original: [https://shopify.engineering/building-app-clip-react-native](https://shopify.engineering/building-app-clip-react-native)

## Summary

Shopify built an iOS App Clip for the Shop app in React Native under the 10MB size cap, aimed at reducing drop-off between the checkout "Thank you" page and order tracking. A naive Hello World App Clip was 28MB because autolinking pulled in every native dependency. Explicitly listing a minimal set of pods in the Podfile cut it to 4.3MB, and a scrappy feature-complete prototype came to 6.5MB. Sharing order-view components failed because they transitively pulled in heavy native dependencies, so the team duplicated UI code, reused only stable shared primitives, and let size constraints drive design decisions. A CI script compares Podfile dependencies against the App Clip's import graph to catch new native dependencies.

Written by swe.quest, not by the author.

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

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- React Native basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- CocoaPods
- iOS app targets

## Keywords

App Clips, React Native, iOS 14, CocoaPods, Shop app, react-native-fast-image, Restyle

## 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.
- [Migrating our Largest Mobile App to React Native](https://swe.quest/articles/migrating-our-largest-mobile-app-to-react-native-da3490e74f9ce01b.md): Shopify Engineering · 2022-12-27 · Medium · 12 min read · Mobile, React, Refactoring & migrations
  Shopify is moving its largest native app, Shopify Mobile (300 screens per platform), to React Native through "Iterative Porting" rather than a rewrite.
- [Reusing Code with React Native Packages at Shopify](https://swe.quest/articles/reusing-code-with-react-native-packages-at-shopify-881b73cbad48dfac.md): Shopify Engineering · 2021-09-29 · Medium · 9 min read · React, Mobile, Build systems, Developer productivity, Version control
  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.
- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code.
- [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.

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)
