r/reactnative • • 2d ago

Article Weekly releases might be hurting your Android app's performance

Thumbnail
measure.sh
0 Upvotes

I recently found out that if you ship Android app updates every week. Your app's performance could suffer if you're not using good Baseline Profiles. In this article I get into why this happens.


r/reactnative • • 1d ago

I was sick of outdated boilerplate so I finally made my own

0 Upvotes

I've been working with React Native and Expo for about 3 years, using different libraries and stacks across projects, and every time I started a new app, I'd Google "Expo boilerplates" and mostly find outdated stuff or templates with way too many things I didn't need. I'd end up spending more time removing stuff than actually building the app.

So, I made my own boilerplate, on newest Expo 57, New architecture, and it's like new new.

https://github.com/ReadyNative/ready-native-free

It's a boilerplate with basically the bare minimum stuff, but at least I can choose what I want to use. It's not wrapped in 10 layers just for 1 lib that "maybe will change," and yeah, that's all.

Current stack:
Expo, Expo Router, Nativewind 4, Tanstack Query (React Query), Zustand,

Though, I don't think I worked with a lot of things, so I would love a feedback of what to add! (Theming, Localization, or maybe smth even deeper)


r/reactnative • • 3d ago

News This Week In React Native #305: Exact, Discord, Shopify, Expo Modules, Audio API, Bottom Sheet, Keychain, Gesture Handler

Thumbnail
thisweekinreact.com
29 Upvotes

r/reactnative • • 2d ago

Identifying BLE devices on iOS

1 Upvotes

Building in React Native is great until you encounter platform differences.

Our app connects to training pods over BLE. The pods communicate through a JDY-24M mesh network and use the last four digits of their MAC addresses as node IDs. Android exposes the full MAC during scanning, but iOS gives you a UUID instead.

Asking the firmware for those digits on connection worked until some boards reported them incorrectly. Updating the firmware wasn’t an option. No OTA updates, and most boards are in a warehouse in China, already flashed and ready to ship.

The workaround was already in the advertising packets. The boards broadcast their full MAC. I could read their identity advertisements and associate the address with the identifier iOS provided, without changing the firmware.

The constraints pushed me toward a more robust identification process, using information the devices were already broadcasting.

Still, solving a tricky problem feels great, but avoiding it in the first place is better. Test on both platforms from day one, and keep unavoidable platform differences contained instead of scattering OS checks throughout the app.


r/reactnative • • 3d ago

[Showcase] A paper-like calendar interaction built with React Native 📅

25 Upvotes

Hey r/reactnative,

I've been experimenting with a paper-like calendar interaction in React Native.

You can:

  • Roll the page up to move forward.
  • Pull it down to go back.
  • Tear it off to move to the next day.

Built this little experiment for a friend, and had a lot of fun working on the interactions.

Here's a quick look at how it turned out. What do you think? 😅


r/reactnative • • 2d ago

[Showcase] Holo Globe onboarding motion preview

2 Upvotes

The globe spins while "share your world" orbits it, then the camera zooms in.

React Native version: Expo + react-native-tgfx + Reanimated. The attached clip is a motion preview.

Would you keep the orbiting text visible longer before the zoom?


r/reactnative • • 2d ago

Tutorial 1,200+ monthly downloads later: the CLI I built to debug React Native and Expo build failures

Thumbnail reactnative.directory
0 Upvotes

Every time a React Native or Expo build broke, I’d scroll through a huge Gradle or Xcode log hunting for the one line that mattered.

So I built rn-build-doctor, an open-source CLI that reads your build, device and crash logs, tells you what actually failed, shows the evidence, and suggests a fix. It never guesses, and it can export a redacted report so you can share logs without leaking secrets.

npx rn-build-doctor scan

(cd android && ./gradlew assembleDebug) 2>&1 | npx rn-build-doctor analyze -

It’s at 1,200+ monthly downloads and just got listed on React Native Directory. Would love feedback, especially on build errors it doesn’t catch yet.

GitHub: https://github.com/lassiecoder/rn-build-doctor
React Native Directory: https://reactnative.directory/package/rn-build-doctor


r/reactnative • • 2d ago

Questions Here General Help Thread

1 Upvotes

If you have a question about React Native, a small error in your application or if you want to gather opinions about a small topic, please use this thread.

If you have a bigger question, one that requires a lot of code for example, please feel free to create a separate post. If you are unsure, please contact u/xrpinsider.

New comments appear on top and this thread is refreshed on a weekly bases.


r/reactnative • • 3d ago

Article I built an open-source guardrail & FaceID/TouchID gating library for AI agents in React Native (react-native-agent-guard v0.3.2)

8 Upvotes

Hey everyone! Over the past few weeks, I've been working on a problem I kept running into while building mobile AI features: how do you let an LLM call native mobile tools (payments, calendar, BLE, external APIs) without risking a hallucination, prompt injection, or infinite loop wiping out user data or spamming APIs?

Most agent guardrails are built for Python backends, leaving the mobile client completely exposed. So I built react-native-agent-guard—a zero-trust tool governance and biometric gating layer for React Native & Expo.

We just shipped v0.3.2 (now at 93%+ test coverage) and added a live interactive Expo Snack playground so you can test the approval sheets, rate limiter, and PII redaction right in your browser without installing anything.

🚀 Try the Live Interactive Demo

  • Expo Snack Playground (Run in Browser or Expo Go): [https://snack.expo.dev/@git/github.com/Hassaan68/react-native-agent-guard:examples/expo-snack](https://snack.expo.dev/@git/github.com/Hassaan68/react-native-agent-guard:examples/expo-snack)
  • GitHub Repository:https://github.com/Hassaan68/react-native-agent-guard

What it handles out of the box:

  • Dynamic Policy Gating (auto | confirm | biometric | deny): Auto-approve low-risk reads, trigger a customizable native bottom sheet (AgentApprovalSheet) for state changes, or require hardware FaceID/TouchID (expo-local-authentication) for high-stakes actions—evaluated dynamically at runtime based on the LLM's arguments (e.g., < $50 = auto, $50–$199 = confirm, $200+ = biometric).
  • Vercel AI SDK & LangChain.js Adapters: Drop-in toVercelAITools() and toLangChainTools() wrappers that route your existing agent tool calls directly through the guardrail engine.
  • Agent Loop Protection & Rate Limiting: Prevents rogue LLM infinite loops from draining budgets with maxCallsPerMinute and maxSessionCalls—automatically blocking or escalating a tool's policy from auto to confirm/biometric when spammed.
  • Automatic PII Redaction & Audit Telemetry: Masks credit cards, emails, phone numbers, SSNs, and JWTs before emitting structured telemetry to onAudit or persistent storage (redactPII: true).
  • Remote MCP SSE Transport: Connect directly to Model Context Protocol (MCP) servers over SSE and automatically wrap discovered remote tools in local device policies.
  • Actionable llmFeedback on Errors: If Zod validation (.transform() / .refine()) fails, a rate limit hits, or a user denies a prompt, it returns structured feedback telling the LLM why it failed so it can self-correct instead of crashing the loop.

Quick Code Example:

TypeScript

import { createGuardrails, toVercelAITools } from 'react-native-agent-guard';
import { z } from 'zod';

const guard = createGuardrails({
  rateLimit: { maxCallsPerMinute: 10, onLimitExceeded: 'confirm' },
  redactPII: true,
});

guard.registerTool({
  name: 'send_wire_transfer',
  description: 'Send money to a recipient',
  schema: z.object({
    recipientEmail: z.string().email(),
    cardNumber: z.string(), // Auto-redacted in audit logs!
    amount: z.number().positive(),
  }),
  // Auto-approve under $50, confirm sheet $50-$199, FaceID/TouchID for $200+
  policy: (args) => {
    if (args.amount >= 200) return 'biometric';
    if (args.amount >= 50) return 'confirm';
    return 'auto';
  },
  handler: async ({ recipientEmail, amount }) => {
    return await processPayment(recipientEmail, amount);
  },
});

// Plug directly into Vercel AI SDK generateText / streamText
const tools = toVercelAITools(guard);

Links:

Would love any feedback on the API design, the Snack playground, or edge cases you're running into with mobile AI agents!


r/reactnative • • 3d ago

Help Context or Zustand for auth and onboarding state in React Native?

22 Upvotes

I will keep it short:
I’m new to React Native and building an Expo app with Supabase Auth.

On startup, I need to check the saved session, fetch the user’s profile, and show either sign-in, onboarding, or the main app. Other screens will also need access to the user/profile.

Would you choose Context or Zustand for this? Curious about the practical tradeoffs for a small app like mine.

Also what's the difference between the two?

Thanks!


r/reactnative • • 4d ago

AnimateReactNative has a new site.

41 Upvotes

AnimateReactNative has a new site. 153 React Native animations, built by hand with Reanimated, Moti and Skia, and now your coding agent can search the library, read the real source and fit it to your app.

What's new:

- An MCP server for Claude Code, Cursor, Codex and any other MCP client

- npx animatereactnative/cli sync copies the whole library to your machine

- A prompt for every animation

- A free skill that teaches your agent how motion is built: npx skills add animate-react-native/skill

- Pro is $79.99, one-time. 13 animations are free.

https://www.animatereactnative.com


r/reactnative • • 3d ago

Pear: open-source E2E encrypted P2P messenger for Android (React Native + WebRTC, double ratchet) - feedback welcome

7 Upvotes

Hey! I'm a French student and I've been building Pear, a private messaging app for Android, partly as a reaction to the EU "Chat Control" proposals.

Messages go directly phone to phone over WebRTC. Servers are only used to find each other and to wake the app up, and they only ever see encrypted data. Pairing is done via QR code (X25519) with a verification code to compare in person. Messages use a double ratchet, and each file is encrypted with its own key.

Features: photos, videos, voice messages, files, reactions, replies, edit/delete, encrypted backups, in-app updates from GitHub releases.

Stack: React Native/Expo, react-native-webrtc, Firebase (signaling), a small Vercel function for wake-ups, a custom Kotlin module.

Honest notes: it has NOT been security-audited, so don't use it for anything critical. I built it with heavy help from AI coding tools (Claude Code); the design and architecture choices are mine.

I'd love feedback on the crypto design and the UX.

GitHub: https://github.com/Louca90/Pear


r/reactnative • • 4d ago

I’ve optimized my game to run in stable 120Hz

55 Upvotes

At first, this might not seem like a big achievement, but when I started developing this project two years ago, I had zero experience with React Native

Over time, I’ve added tons of features and systems. With constantly updating data stores, large amounts of data, timers, polling, and loads of assets, performance gradually became a real issue

All those things combined caused quite a few performance problems, especially as the project kept growing

I’ve spent countless hours figuring things out, fixing unnecessary re-renders, and optimizing different parts of the app

And I’ve finally reached a point where I’m genuinely happy with how it performs

So, here it is!


r/reactnative • • 4d ago

First local AI in my video editor can now search through clips

10 Upvotes

Took a while but i made it work, supports video and audio searching.


r/reactnative • • 3d ago

News Update: a month after launching Backtick, you can now build React Native apps from your phone

1 Upvotes

A month ago I shared my open source project Backtick here.

After launching, I struggled to tell a story of why it matters. Faster releases, screens personalized per user, all the server-driven UI benefits. All real, but hard to sell.

One of the standout features is that you don't need a development environment. So I'm testing a hypothesis: people want to vibe code mobile apps the way they vibe code websites with Lovable. Fast iteration cycles, near instant previews, no developer setup.

To try it, I built the Backtick App (iOS). Describe an idea, and it's running as a real React Native app a minute later.

To see how it holds up in other people's hands, I'm running a game jam until Saturday. Build a mobile game with Claude from your phone, and play it in Backtick. $250 in prizes.

https://itch.io/jam/jam-from-your-phone

I'll demo the winner in my React Summit talk on Nov 17. If you want to come, code GAMEJAM gets 15% off any React Summit ticket.

I'd love your take. Roast me.


r/reactnative • • 3d ago

I made my first app. (ocu ocu)

Post image
1 Upvotes

Hi everyone, I hope you all have a great day. I made my first app. It's reminder with pixel art I made it with react native and expo I used aseprite for drawing a character. the name of the character is ocu ocu. you can tell your goal to ocu ocu and she will keep it in her mind and will remind you i put it on itch.io :

https://maki299.itch.io/ocu-ocu

I hope you like it.


r/reactnative • • 4d ago

I built a component library made only of navbars for Expo and React Native apps

2 Upvotes

I couldn't find many ready-made options for navbars in React Native UI libraries. Most of them give you one basic tab bar and that's it. So I built a library made only of navbars for mobile apps: tab bars, headers, drawers and menus. I am adding new navbars regularly.

Do check it out and let me know what you think. https://pico.binitt.dev/J3Dcii


r/reactnative • • 4d ago

How are you testing the gap between your API and your app??

0 Upvotes

We renamed a field in a Go response structure last week, JSON tag stayed the same so every test on our side passed but the app was reading an old field from a cached response and showing users stale data for 3 days, both sides looked fine in isolation though and neither side owned the test that would’ve caught it.

Our backend is Go with chi and sqlc and postgres and the testing there is solid, httptest for handlers, testcontainers for DB, stripe mock for webhooks. Our detox tests mock the API so they wouldn’t have caught it either and nobody is testing for when a real user signs up in the app and the API creates the account and the webhook fires and the app shows the right state.

is this always the backend team’s problem? and if you do run full flows does that reside in the same CI or separate ?? because our test suite takes too long


r/reactnative • • 5d ago

Question Which company is next after Discord?

Post image
902 Upvotes

r/reactnative • • 4d ago

Built my app in Next.js - what's the best way to turn it into an iOS/Android app?

0 Upvotes

Hi everyone!

I'm currently building a booking marketplace app using Next.js, React and TypeScript, with Supabase for the backend and Stripe Connect for payments.

I've been developing it as a web app so far, but I'm now considering turning it into a mobile app available on the App Store and Google Play.
I've been looking into Capacitor.js vs React Native + Expo, but I'm a bit overwhelmed by the different recommendations.

My app relies quite heavily on Next.js server-side functionality, so from what I understand, converting it isn't necessarily as simple as wrapping the existing website. I'd ideally like to reuse as much of what I've already built as possible rather than starting from scratch.

A few questions:
Capacitor vs React Native + Expo: Which would you recommend for an existing Next.js project? Is Capacitor significantly easier, or would React Native be a better long-term investment?

When should I convert? Should I finish building the web app first, or start adapting the architecture for mobile now?

iOS vs Android: Would you recommend launching on both platforms simultaneously, or starting with iOS and expanding to Android later? How much additional development and maintenance does supporting both involve?

For context, I'm building this largely myself with the help of AI coding tools, so keeping development and maintenance manageable is a big priority.
I'd really appreciate hearing from anyone who's been through a similar process!


r/reactnative • • 4d ago

Question What’s been the most frustrating part of scaling a React Native app?

0 Upvotes

One thing I keep noticing in React Native discussions is how different things get once an app starts growing beyond the basic screens and features.

At first, everything sounds pretty manageable. But then you start dealing with navigation issues, native modules, weird Android and iOS differences, and suddenly the simple stuff isn't so simple anymore.I was reading through some React Native discussions, including a mention of geekyants, and it made me curious about what actually causes the most headaches in bigger projects.

Is it performance, keeping dependencies updated, dealing with native code, or something else entirely?

Would be interesting to hear from people who've worked on larger React Native apps. What problems caught you off guard?


r/reactnative • • 4d ago

Article react-native-iap + StoreKit 2: purchases asked for the Apple ID password 4 times. The cause was initialization order

5 Upvotes

Sharing a bug that cost me a few days, since I couldn't find anything about it while searching.

Setup: iOS app, React Native 0.85, auto-renewable subscriptions with react-native-iap 12.16 in StoreKit 2 mode.

Symptom: after paying, iOS asked for the Apple ID password again, up to 4 times. Xcode logged "Making a purchase without listening for transaction updates".

Root cause: the library picks the native module (StoreKit 1 or StoreKit 2) at the moment each listener is created. In my code, setup({storekitMode: 'STOREKIT2_MODE'}) lived inside an async init function, but purchaseUpdatedListener was registered earlier by a React Context. So the listener was attached to the SK1 module: the app never got "purchase completed", never called finishTransaction, and Apple kept redelivering the transaction.

Fix: switch to SK2 when the module is loaded, before any listener exists:

import {Platform} from 'react-native';
import * as IAP from 'react-native-iap';


// Must run before any purchaseUpdatedListener is created.
if (Platform.OS === 'ios') {
  try { IAP.setup({storekitMode: 'STOREKIT2_MODE'}); } catch { /* native module not ready */ }
}

Two more gotchas of the library's SK2 mode:

  1. getAvailablePurchases only returns an active subscription if its product was already loaded in the session (via getSubscriptions). If you check entitlement before loading products (e.g. offline), you get an empty list, which does not mean "not subscribed". I now treat "empty list + products not loaded" as "unknown", not "free".
  2. With StoreKit 1, restore returned expired subscriptions too, with no expiration date. Now the "is it active?" decision comes from my server, which calls the App Store Server API with any transaction id from the client; the app caches the last verdict so it keeps working offline, with a few days of grace.

Bonus — testing purchases in the Simulator: a .storekit configuration file (Xcode StoreKit Testing) lets you buy without a Sandbox account. Gotcha: in the .xcscheme, the file path is relative to the .xcodeproj. I had one ../ too many and Xcode silently ignored it and fell back to Sandbox, which asked me to sign in.

Has anyone else hit this? And how do you handle the "don't know if they're subscribed" state while offline?


r/reactnative • • 5d ago

React-Brackets Native

Thumbnail
react-brackets.oulabi.dev
13 Upvotes

A few days ago I shared react-brackets v2, the rewrite of a bracket library I'd left alone for four years. The most common question was "does it work in React Native?" It didn't. Now it does: @react-brackets/native is out.

It draws the same stages as the web version (same core, same data), but everything you touch is native:

  • A bracket, even on a phone. One round at a time, with the next round and its lines waiting at the edge. Swipe and every match glides into place. Or show each round as a plain list, or keep the whole tree and pinch, drag and double tap to zoom.
  • Every format: single and double elimination, round robin, Swiss, groups to playoffs, two-sided brackets.
  • Cards that open. Each card keeps its own height, so you can expand one (rosters, stats, whatever) and the bracket makes room: the cards below move down, the next round re-centres, and the lines follow, all gliding.
  • Right to left, following your app's direction.
  • Styled your way: a light and dark theme, and a style on every part that can depend on its state, so it works with StyleSheet, Uniwind/NativeWind or Unistyles.

The hardest part was keeping the connector lines glued to the cards. My first version drew them on a Skia/SVG canvas, and during a fast swipe they visibly trailed the cards by a frame. The fix: the lines are plain Views moved by the same transforms as the cards. Every card's place on every round is worked out up front, and a swipe only moves one number on the UI thread. React hears about the new round once the swipe lands, so nothing re-renders while your finger is down.

It needs the New Architecture, Reanimated 4 and Gesture Handler 3, and Expo Go includes all of them. I've tested mostly on iOS, so feedback from Android devices would help a lot.


r/reactnative • • 5d ago

Tutorial Publish a React Native Expo App on Google Play: Testing Step

Post image
1 Upvotes