5-Minute Quickstart
Get from zero to a live deployment in 5 minutes. This is the condensed version -- see the full Quick Start guide for native setup code and troubleshooting.
This summary skips the native entry point changes (AppDelegate, MainApplication) that are required for OTA updates to work. Follow the full Quick Start or Installation guide for complete native setup.
Step 1: Install the CLI
npm install -g @swiftpatch/cli
Step 2: Log In
swiftpatch login
Step 3: Install the SDK
npm install @swiftpatch/react-native
cd ios && pod install && cd ..
Step 4: Wrap Your App
import { withSwiftPatch } from '@swiftpatch/react-native';
function App() {
return <YourApp />;
}
export default withSwiftPatch(App);
Step 5: Add Your App ID
iOS -- ios/YourApp/Info.plist:
<key>SwiftPatchAppId</key>
<string>YOUR_APP_ID</string>
Android -- android/app/src/main/res/values/strings.xml:
<string name="SwiftPatchAppId">YOUR_APP_ID</string>
Get your App ID from the dashboard after creating an app. You also need to update your native entry points to load SwiftPatch bundles -- see the full installation guide.
Step 6: Deploy
swiftpatch init
swiftpatch deploy -p ios --hermes
--hermes if your app uses HermesReact Native 0.70+ enables Hermes by default. Deploying without --hermes causes a crash loop.
You're all set. Users get the update on next app launch.
- Quick Start (full guide) -- Complete walkthrough with native setup, verification, and troubleshooting
- Installation -- Native setup for iOS and Android
- Configuration -- SDK options
- CI/CD -- Automate deploys