◉RORK LABJP
●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
Articles/Dev Tools
⬡ Dev Tools/2026-04-28Advanced

Implementing Share Extensions with Rork Max — Adding Your App to iOS's Share Sheet

A production-ready guide to building iOS share extensions on top of a Rork Max project. Covers App Groups, URL schemes, minimal extension UI, and the gotchas that ship-blocking apps every quarter.

Rork Max236Share ExtensioniOS118SwiftUI66App Group4Deep Link

✦ Premium Article

If you've ever built a notes app on iOS, you've probably wished you could let users share a Safari article straight into your app from the system share sheet. I burned two full days early on assuming this could be done in React Native alone. The honest answer: share extensions live in their own native target, and JavaScript bundles cannot be wired into them.

The good news is that pairing Rork Max's native SwiftUI generation with a small share-extension target collapses most of that complexity. In this guide we'll walk through adding a share extension on top of a Rork Max base project, sharing data through an App Group, and deep-linking back into the main app — all with code that actually ships and survives App Review. If you're building a Pocket-style read-later app, a notes app, or a social client that pulls in content from other apps, this is the blueprint.

Why share extensions can't live inside React Native alone

Let's level-set on the platform constraints before any code. Share extensions are part of Apple's "App Extension" architecture: they run in a different process from your main app, with their own signed binary. The little panel that appears in the share sheet is effectively a tiny separate app.

App extensions must be authored in Swift or Objective-C. React Native and Expo manage your main app's bundle, but they don't extend into separate extension targets. Open-source bridges like react-native-share-extension exist, but they're frequently unmaintained and force you into UIKit + a JS runtime that's slow to spin up — a poor fit for the few seconds the OS gives an extension to live.

In real products I prefer main app = Rork (React Native) or Rork Max (SwiftUI), share extension = native SwiftUI. With Rork Max, both halves can sit in a single Xcode project, sharing models and styles where it makes sense.

Choosing the right extension type

iOS ships several extension types, and the naming is genuinely confusing the first time. If your goal is "show my app inside the system share sheet," there is exactly one correct answer.

  • Share Extension: receive content and persist or send it from inside your app
  • Action Extension: transform content and hand the result back to the host app
  • Document Provider: expose your app's files inside the Files app

Read-later, notes, social clients, and "save for later" tools all want a Share Extension.

Step 1: Generate the base project with Rork Max

Start with the main app. I keep the Rork Max prompt deliberately small at this stage so the diff after adding the extension is easy to read.

Generate an iOS-only read-later app with Rork Max:
- SwiftUI native target
- Minimum iOS 17
- Show a list of saved URLs and titles
- On launch, read pending items from the App Group
  "group.net.rorklab.readlater.shared" UserDefaults
- Handle the URL scheme "readlater://" with optional ?url=&title=
  query parameters appended to the list
- Persist with SwiftData

Open the generated project in Xcode, replace the bundle ID, signing team, and capabilities with your own, and confirm the app builds and runs on a real device before doing anything else. Wiring up an extension on top of a still-broken main app makes signing failures genuinely impossible to triage.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦If you've been stuck because share extensions can't be built in React Native alone, you'll get a working Rork Max + native SwiftUI implementation today.
✦You'll master sharing data between an extension and your main app via App Groups, deep-linking with URL schemes, and designing minimal-yet-useful extension UI.
✦You'll be able to ship reading-list, note-taking, or social client apps that pull content from other apps into your own — production-ready from day one.
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-07-18
The Generated Screen That Quietly Jams at AX5 and in German — Putting Layout Resilience Checks on Rork Max SwiftUI
A record of running every Rork Max generated SwiftUI screen through pseudolocalization and the largest text size to find exactly where it jams. Covers when to reach for ViewThatFits, ScaledMetric and layoutPriority, plus the snapshot checks that catch regressions every time you regenerate.
⬡ Dev Tools2026-05-17
Reading Rork Max's SwiftUI Generation Through a Wallpaper App's Requirements — What to Trust, What to Fix, What to Write by Hand
Typical wallpaper-app requirements — grid, pinch-zoom, slideshow, photo-library permission, ads, in-app purchase — handed to Rork Max's SwiftUI generation: where the output tends to hold up and where it tends to break. For the memory failure that bites first, this note includes decode-time downsampling, a bounded cache, and a procedure for measuring on your own device.
⬡ Dev Tools2026-05-16
Migrating Firebase CocoaPods to SPM in Rork Max Apps
Since Firebase 13.0.0 (October 7, 2026) the Apple SDK ships only through Swift Package Manager and binaries, and CocoaPods trunk stops accepting podspecs on December 2. A migration log from moving Rork Max iOS apps to SPM, with a symptom-by-symptom troubleshooting table, the dSYM and Dropbox pitfalls, and what to check before moving to Firebase 13.