Sign-in, done properly
Email, Apple and Google sign-in, tokens in the Keychain and Keystore, and a session that refreshes itself. Session · Apple and Google

npx create-bareship MyAppv0.5.0 · MIT · iOS and Android · React Native 0.87
A like or an edit made offline is saved, survives a restart and is sent once when the phone reconnects.
Rules the linter enforcesLayers, feature boundaries, translations and accessibility are checked by ESLint, not by code review.
Built for AI agentsAGENTS.md, skills and generators, so Claude Code, Cursor and Copilot write code that passes the same checks.
Like a post with no signal and the like shows at once, marked “Waiting to sync”, while a banner says how many changes are waiting. Close the app and reopen it: the change is still there, and it’s sent once the phone reconnects.
How offline writes work →
Tokens are kept in the iOS Keychain and Android Keystore. The Apple and Google buttons follow each provider’s branding rules, work with mock providers until you add your ids, and come out with one command if you don’t want them.
Set up Apple and Google →

Screens are styled with theme tokens, so the dark theme needs no extra work, and the app switches the moment the phone does. Users can also pick a theme in Settings.
How styling works →
Every string comes from a translation file, and dates, numbers and “last week” are formatted in the user’s language. Lint rejects hard-coded text, and a right-to-left language such as Arabic is one setting away.
Languages and right-to-left →
Theme, language, notifications, sign-out and account deletion are done. The screen also shows which environment the build talks to, so dev, staging and prod builds are easy to tell apart.
Dev, staging and prod →
Add a photo to a post and it shows at once with its progress. With no signal it waits, keeps through a restart and uploads when the phone reconnects. If the server refuses it, Try again sends it once more without storing the photo twice.
Add uploads to your screens →

Before the system asks, a sheet says why the app needs the permission, because iOS asks only once. If someone said no earlier, the sheet says how to turn it back on and opens Settings. Notifications use it out of the box; add camera or location in a few steps.
Ask for a permission →

Three swipeable screens with Skip, shown once before sign-in. Change the words in the strings file, or remove the screens if your app doesn’t need them.

You don’t need a backend, a Firebase project or an Apple Developer team to build the app, run it or put it on a phone. Development builds serve sample data from a mock backend inside the app, and every service falls back when its account is missing:
When you’re ready, Going live lists what to add and what each step switches on.
Every write in the app picks one of four behaviours, so users always know what happened to what they did.
| Pattern | What the user sees | Use it for |
|---|---|---|
| A | The change appears at once and syncs in the background | Low-stakes toggles |
| B | The change appears at once, marked “Waiting to sync” until it’s sent | Likes, comments, edits |
| C | The form is disabled while offline, with the reason | Sign-in, payments |
| D | The screen is replaced by an offline message | Account deletion, checkout |
Writes queued with A or B survive closing the app and are sent in order when the connection returns. An offline banner sits under the header while the phone is offline. How to choose and use a pattern
The rules your team follows are written down where coding agents read them, and the linter checks the result.
How agents work with the template
Sign-in, done properly
Email, Apple and Google sign-in, tokens in the Keychain and Keystore, and a session that refreshes itself. Session · Apple and Google
Firebase when you want it
Crashlytics, Analytics, Remote Config and push switch on when you add a Firebase file, and fall back without one. Set up Firebase
Three environments
Dev, staging and prod install side by side, each with its own app id, name, icon badge, URL
scheme and .env file. Environments
Generators
pnpm gen feature orders writes a working screen, its API call, mock data, strings, a deep link
and tests that pass. Generators
Releases with fastlane
Version bumps on both platforms, release builds, match signing, and uploads to TestFlight and Play internal testing. Releasing
A demo you can remove
A feed, likes and a component showroom show every pattern. pnpm strip-examples removes them
and leaves a blank Home tab. Demo code
Also included: English and Hindi with right-to-left support (Languages), permission prompts that explain first (Permissions), offline photo uploads (Photo uploads), and a supply-chain policy that refuses packages younger than 3 days (Decision 0003).
A good fit if you
ios/ and android/ and see every native changeNot a fit if you
Comparing templates? How to choose a React Native template lists eight questions to ask of any of them.
Create the app. It checks your tools first, then installs everything and sets the bundle id (other ways, with the React Native CLI or GitHub’s template: Quick start):
npx create-bareship AcmeStart an emulator or simulator, then run the app and sign in with demo@example.com / password123:
cd Acmepnpm android # or: pnpm iosWhen you start on your own screens, remove the demo and add your first feature:
pnpm strip-examplespnpm gen feature ordersRead the introduction
No. Development builds use a mock backend inside the app. When your API is ready, set API_URL and
API_MOCKS=false in the environment’s .env file. Use your API
No. Without a Firebase file the app logs crashes and analytics to the console, uses default feature flags and shows notifications locally. Add the file when you want the real services.
iOS 15.1 and later, and Android 7.0 (API 24) and later, on React Native 0.87 with the New Architecture. Version matrix
Every change to ios/ and android/ is listed with its Expo equivalent in
Native changes, and native libraries sit behind small interfaces, so the app code
doesn’t depend on how the native side is built.
Your app owns its copy of the code, so nothing updates on its own. Each version is published to npm and listed in the changelog; copy the changes you want.
Nothing. It’s open source under the MIT license.
If Bareship saves you a week, a star on GitHub helps other React Native developers find it.
Star on GitHub
Made by Praveen Singh, Senior React Native engineer