Skip to content

Changelog

Notable changes to the template. Versions follow Semantic Versioning. Apps made from the template own their copy of the code, so a new version reaches an app only when its authors apply the changes.

Photo uploads that work offline, pnpm gen upload to add one to your own screens, and a fix for queued writes lost at launch.

  • Write a post with a photo from the library or the camera (the pen in the feed’s header). The post shows at once with its upload progress. Offline it waits, survives a restart and goes out on reconnect; a dropped connection waits again instead of failing; a refused post stays as failed with Try again and Remove. Every retry reuses one idempotency key (guide).
  • New PhotoPicker and FileStore ports (react-native-image-picker, react-native-file-access), and uploadFile, useUploadProgress, discardQueuedWrite and resend in the data layer, plus an <UploadStatus> component.
  • The camera is a new permission kind, through react-native-permissions on iOS; Android needs none. usePermission takes onGranted, and a status can be unavailable (no camera).
  • defineQueuedMutation takes a retry policy.
  • pnpm gen upload <feature> <name> writes a photo upload that works offline (defineQueuedUpload), with its schema, mock and tests, and an add-upload skill for AI agents. defineQueuedUpload also does “upload, then create the record” in one write (then), and the demo’s post composer is built on it.
  • Fix: a write queued offline could be dropped at the next launch when the connection came back before the session was restored (it was taken for another account’s). Restored writes now wait for the session.
  • The mock backend accepts POST /uploads and POST /posts; a post containing #fail is refused.

Permission prompts that explain first.

  • Asking for a permission opens a sheet before the system prompt that says why the app needs it. If the OS won’t prompt again, the sheet says how to turn it back on and opens the system settings. Use usePermission(kind) and render its <PermissionSheet {...sheet} /> (guide). Settings → Notifications uses it, and the hook reads the status again when the app returns to the foreground.
  • A new Permissions port (check, request, openSettings) behind services().permissions. Only notifications are declared, so apps list no permissions they don’t use; the guide shows how to add camera, photos or location with react-native-permissions.
  • usePushPermission (src/entities/push) is replaced by usePermission('notifications'). Apps made from earlier versions keep their own copy and need no change.

A fix for the feature generator, and a check that keeps every generator working.

  • pnpm gen feature writes a list screen that passes lint again: it formats dates with useFormat(), so they follow a language switch, instead of formatRelative(), which the lint rule added in 0.2 rejects. The generators also call ESLint and Prettier directly rather than through pnpm exec, and scripts/ci/check-generators.sh runs every generator on a scratch copy and checks the result.

Sign in with Apple and Google (optional, and removable with one command), offline writes that stay with the account that made them, an option to stop dependent writes after a failure, and fixes for right-to-left text, screen titles and the light/dark switch.

  • Sign in with Apple (iOS) and Google (iOS and Android) on the sign-in and register screens, behind a new SocialSignIn port (ADR 0020, guide). The buttons appear once GOOGLE_WEB_CLIENT_ID, GOOGLE_IOS_CLIENT_ID or IOS_APPLE_SIGN_IN are set in .env; with the mock backend they work with no accounts. The app sends the provider’s ID token to POST /auth/social, and sign-out also signs out of Google.
  • The “Continue with Google” button follows Google’s current branding guidelines on iOS and Android: the 2025 gradient “G”, Google Sans Medium, Google’s light and dark colours and its padding per platform. It replaces the library’s older native button, and its text now follows the app’s language (Hindi included). The Apple button matches its height and corners. Adds assets/fonts/SignInSans-Medium.ttf, a trimmed copy of Google Sans (OFL 1.1).
  • Sign in with Apple and Google is optional: in development the mock buttons show only while SOCIAL_SIGN_IN_MOCKS=true (the default in .env.dev), and pnpm remove-social-sign-in takes it out of an app completely: code, libraries, font and native config (guide). scripts/ci/check-remove-social-sign-in.sh checks the removal.
  • Each queued offline write records the account that made it, and is never sent while another account is signed in: it’s dropped and logged instead (#26). Before, only the sign-out flow (which clears the queue) prevented this. Writes queued by older versions replay as before.
  • Queued offline writes take onRejected: 'cancel-scope': when such a write fails for good, the writes queued behind it in its scope (an edit of a draft whose create failed) are never sent, and each rolls back in its onError (#27). The default, 'continue', is unchanged.
  • With the theme set to “System”, the app now follows a light/dark switch while it’s open on both platforms. Unistyles 3.5 missed some OS switches (most often the first one after launch) until the next switch or a restart; the app now re-applies the adaptive theme on React Native’s appearance event and when it returns to the foreground (followSystemAppearance in src/shared/ui/theme/preference.ts).
  • Right-to-left layouts align text to the start on iOS too. iOS aligned text by its own script, so English or Hindi text stayed on the left in a mirrored row; the Text primitive now defaults to textAlign: 'start', and align takes start, end, center, justify or auto.
  • Switching the language updates the title of a screen pushed over the tabs (the component showroom) and its iOS back-button label at once, without a restart. The back label is now the tab underneath (“Settings”) instead of the route name “Main”.
  • Bottom sheets opened from a screen presented as a modal show above it on iOS (FullWindowOverlay).
  • The feed recycles rows with and without an image separately (getItemType), and its tests find like buttons by role and name instead of testID.
  • Every dependency in package.json is pinned to an exact version (it already was in the lockfile), and pnpm add now saves exact versions (savePrefix: '' in pnpm-workspace.yaml), as AGENTS.md asks.
  • concurrent-ruby (used by CocoaPods and fastlane) goes from 1.3.3 to 1.3.8, which fixes three security advisories. The Gemfile’s < 1.3.4 pin came from the React Native template and was only needed with activesupport older than 7.1; the lockfile has 7.2.4, so the Gemfile now asks for >= 1.3.7.
  • The pull request template asks why (with the linked issue), how it was tested on each platform and for screenshots, and a new Pull request title workflow checks that titles are Conventional Commits, since a squash merge turns the title into the commit on main.
  • Apps made from the template ignore per-developer Claude Code files (.claude/launch.json, .claude/settings.local.json, .claude/worktrees/), and pnpm pack-template lists any untracked file it packs, so a local file can’t slip into the npm package.
  • ESLint, Prettier and Jest skip .claude/, so pnpm check no longer lints and tests the copies of the repo that Claude Code keeps in .claude/worktrees/.

A new logo, and pnpm splash keeps the markers that point to each native change.

  • New logo: a boat whose mainsail is a B (ADR 0019). It replaces the stacked layers in the app icon (every environment), the splash screen, the README, the website header, favicon and share image. Apps made from the template start with it as their placeholder icon and splash.
  • pnpm splash keeps the [bareship] marker comments in AndroidManifest.xml. react-native-bootsplash’s generator drops every comment from the manifest, so scripts/splash.ts now runs it and puts the manifest back; if .MainActivity doesn’t use BootTheme, it keeps the generated manifest and lists the comments to restore by hand.

The npm pages: create-bareship becomes the page to start from. No changes to the app’s code.

  • create-bareship’s npm page shows the full README, with screenshots and what’s inside, instead of a short options list; it also has the template’s search keywords. bareship’s page keeps the same README under its “template, not a library” note, which now links to create-bareship. Links in both point at GitHub.
  • README: the installer’s options table is in the quick start, and the npm badge and link go to create-bareship. The website’s npm icon, llms.txt and search data point there too.
  • scripts/ci/check-create.sh checks that both npm READMEs have the quick start and screenshots and no relative links.
  • The app’s README says that an app made with npx create-bareship is already installed, and gives a teammate’s clone steps (pnpm install, bundle install, pnpm pods) instead of asking for bootstrap.
  • Website: the home page, FAQ, introduction and AI agents page create the app with npx create-bareship.
  • npx create-bareship Acme creates an app in one command (ADR 0018). It checks the tools first (Node, pnpm, Ruby and Bundler, Java 21, Xcode on a Mac) and says how to fix anything missing, asks for the bundle id and display name (or takes --bundle-id, --display-name and --yes), then runs init, pnpm install, bundle install and pnpm bootstrap, and makes the first git commit. create-bareship@X creates apps from bareship@X. It has no dependencies.
  • The bareship package runs the same installer as its bin, so npx bareship Acme works too, and its npm page says at the top that it’s a template, not a library to install.
  • README and website: the quick start leads with npx create-bareship; the manual steps stay as a fallback.
  • pnpm pack-template packs both packages, and scripts/ci/check-create.sh creates an app through each and runs its checks. The installer isn’t copied into apps.

Hindi replaces Arabic as the second language, and right-to-left becomes a switch per language. Apps made from 0.1.x keep Arabic until their authors apply these changes.

  • Hindi replaces Arabic as the second language (ADR 0017). Right-to-left stays supported as rtl: true on a language in LANGUAGES; tests cover the direction switch and mirrored icons without shipping an RTL language.
  • Lint rejects left/right style keys and textAlign: 'left' | 'right'; use start/end.
  • pnpm gen and pnpm strip-examples work on every locale file, so adding a language needs no script changes.
  • Fix: dates and relative times (“2 days ago”) stayed in the old language after a switch in Settings, because the React Compiler cached the formatted text. Components now use useFormat() from @/shared/lib/format, and lint rejects plain formatRelative/formatDate/formatNumber calls in JSX.
  • README and website: the screenshots show the feed and Settings in Hindi instead of Arabic.
  • Docs: a languages guide (how it works, adding a language or a right-to-left one), on the website under Build your app.

Screenshots on the npm page. No changes to the app’s code.

  • README and website: screenshots of the demo app on iOS and Android (feed, offline with a like waiting to sync, dark theme, Arabic right to left, settings, sign-in). The website shows them in iOS and Android tabs.
  • The npm package leaves out the screenshots (assets/screenshots/), so apps made from it don’t carry them.

Fixes pnpm bootstrap for apps made with init, following the quick start.

  • Docs and website: the React Native CLI (npm package bareship) is the first way to create an app; an npm link in the site header; FAQ answers on versions and updates.
  • Fix pnpm bootstrap on an app made with init: a bundle id that extends the package init set (com.acme → com.acme.app, as in the quick start) crashed while moving the Android package folder, after the files were already rewritten. A second run then said “Nothing to rename” and skipped pod install, so the iOS build failed. Bootstrap now moves the folder through a temporary one, and still sets up the iOS configs and pods when there is nothing to rename.
  • pnpm bootstrap --name is optional and defaults to the app’s current name, since init already sets it. The quick start is now pnpm bootstrap --bundle-id com.acme.app --display-name "Acme"; a copy of the GitHub repository still passes --name. scripts/ci/check-template-init.sh runs that exact case.

The first release, on npm as bareship (npx @react-native-community/cli@20.2.0 init Acme --template bareship --skip-install --install-pods false) and as a GitHub template repository. It collects everything below.

  • Apps made with init get their own README (scripts/app-readme.md): how to run, customise and release the app, with no links to the template’s own files. scripts/ci/check-template-init.sh checks it and the links in the app’s docs.
  • README: a new header with the logo, a tagline and quick links, and a direct Use this template link.
  • CODE_OF_CONDUCT.md (Contributor Covenant 2.1).
  • The repository is public and a GitHub template repository.
  • Website and docs live at https://bareship.praveensingh.co.in with a sitemap and robots.txt (ADR 0016). Vercel deploys it on every push to main.
  • The website builds without the app’s packages installed (Vercel), and the Offline and AI agents pages are now committed (the root .gitignore hid them).
  • The template is now Bareship (was rn-template): npm package bareship, repository psingh2907/bareship, code markers [bareship] (ADR 0015).
  • The app inside the template is renamed with pnpm bootstrap: bundle id com.bareshipapp, URL scheme bareshipapp://. Apps made with init get their own names, as before.
  • Docs: run pnpm pods again after a pnpm install that changes node_modules (Skia’s iOS binaries).
  • pnpm strip-examples removes the demo (feed, posts mocks, showroom) and leaves a blank Home tab; scripts/ci/check-strip-examples.sh checks the stripped app.
  • npm template for the React Native CLI (pnpm pack-template), checked end to end by scripts/ci/check-template-init.sh.
  • pnpm bootstrap checks for the Ruby gems before renaming anything.
  • MIT license, contributing and security guides, issue templates.
  • The tab navigator’s route is Main (was Home), so an app’s own Home tab doesn’t clash with it.
  • Lint sweep: no barrel files, React Compiler lint rules, ARIA accessibility props.
  • pnpm gen feature|screen|endpoint and the add-feature, add-screen, add-endpoint agent skills.
  • fastlane lanes for version bumps, release builds, match signing, TestFlight and Play uploads.
  • Postponed: Maestro end-to-end tests, Reassure, startup metrics, bundle report.
  • Offline write queue (patterns A–D), offline banner and “waiting to sync” states.
  • Optional Firebase: Crashlytics, Analytics, Remote Config, FCM push with local notifications.
  • Deep links and universal / App Links, force update and maintenance mode, demo APK.
  • Decisions (ADRs), three environments, splash, icons, pnpm bootstrap, CI.
  • API client with Zod, TanStack Query persisted to MMKV, React Navigation static API, Unistyles design system, English and Arabic (RTL), forms, auth, feed and settings, MSW mock backend.

Made by , Senior React Native engineer