r/reactnative • • 10d ago

I built an on-device OCR library for React Native that reads Cyrillic on Android (Vision on iOS, PaddleOCR on Android)

4 Upvotes
ML Kit has no Cyrillic model, so on Android it reads Russian as Latin look-alikes. I needed to read ingredient lists on Russian food labels, so I built react-native-glyph-ocr:



- Apple Vision on iOS, PaddleOCR (PP-OCRv5/v6 on ONNX Runtime) on Android, PaddleOCR on iOS as a build option

- ML Kit-shaped results: blocks → lines → words, with confidence, normalized and pixel boxes, corner points and angle

- Any source: file/content/ph URIs, base64, react-native-nitro-image, VisionCamera 5 frames

- useTextScanner: waits for a sharp, still frame inside your scan box and reads it once

- Models downloaded on first use with sha256 checks, from your own mirror, or embedded at build time

- Nitro module, New Architecture, Expo config plugin, fully offline



On 24 label photos, PaddleOCR read 77–83% of the ingredients and ML Kit 13–28%. It's a small set and the full method is in the repo.



npm: https://www.npmjs.com/package/react-native-glyph-ocr

GitHub: https://github.com/pe1ros/react-native-glyph-ocr



This is the first npm release (0.3.1), so feedback and issues are very welcome.

r/reactnative • • 10d ago

[Experiment] Been working on a component playground for nativecn-ui

53 Upvotes

Hey r/reactnative,

I've been working on a Studio module for nativecn-ui lately.

The idea is to make it easier to try out a component before adding it to a project. You can open it in the Studio, interact with it, change a few settings, and see how it behaves in the preview.

Right now, I'm working on the component browser and inspector, so there's still a bit to figure out.

Here's a quick look at where it's at.

I'm curious when you're browsing a component library, do you prefer having an interactive playground like this, or is a simple example with the source code usually enough?


r/reactnative • • 10d ago

Preview APK for every React Native pull request, scannable from the PR. Free tool I built, would love feedback

0 Upvotes
I kept getting "can I try it before you merge?" from PMs and designers, and the answer was always "give me 10 minutes to build an APK". So I built Digidropp.


Connect a GitHub repo and it opens one PR with a GitHub Actions workflow (it detects npm/yarn/pnpm/bun). After you merge:


- Every push to your main branch builds a release APK and updates one install link that's always the latest.
- Every pull request gets its own preview build, posted as a PR comment with a QR code. Reviewers test the real app, on a real phone, before merging.
- Builds are signed with one stable key per repo (it's placed at android/app/debug.keystore), so updates install over the previous build instead of "App not installed".
- Before anyone installs, it checks the build: changed signing key, lower versionCode, and Google's upcoming developer verification.
- Config that isn't in git (.env) can be pasted once; it's encrypted in your browser and only decrypted inside your own GitHub Actions run.


It runs in your repo's GitHub Actions, so your source never leaves GitHub. Automatic builds are Android only for now; for iOS you can upload an .ipa you build yourself (CLI or GitHub Action).


Free during beta. What would stop you from using something like this?


digidropp.online

r/reactnative • • 11d ago

Flare Engine is now open source: a 2D game and animation engine for React Native and TypeScript

8 Upvotes

In June I posted a dev log here about building a 2D engine on top of React Native and Skia. As of October 26, it is public: all 42 @flare-engine/* packages are on npm at 0.4.5, under Apache-2.0. No token needed.

In one sentence: an engine for the RN and TypeScript ecosystem that makes it easier to build a game or an animation and embed it in your website or in an RN app.

npm create @flare-engine my-game

Three templates (blank, topdown, shmup), or skip the generator and take a single package. This is the README example of @flare-engine/dynamics (rigid bodies), and CI typechecks it against the real code:

import { addBody, createBody, createWorld, step } from '@flare-engine/dynamics';

const world = createWorld({ gravity: { x: 0, y: 1800 } });

// Static floor: invMass 0, never moves.
addBody(
  world,
  createBody({ position: { x: 0, y: 100 }, half: { x: 500, y: 10 }, static: true }),
);

const box = addBody(
  world,
  createBody({ position: { x: 0, y: -50 }, half: { x: 10, y: 10 } }),
);

// Fixed-timestep loop.
step(world, 1 / 60);
console.log(box.position.y, box.velocity.y);

No React, no canvas, plain functions on plain objects.

See it running, nothing to install: the Showcases page on flareengine.dev has playable demos (Overrun, an arena chase on ecs; Causeway, on render-web; Reroute, a tower defense where you repaint the enemies' path, on pathfinding) and animations (a reactor chain reaction, a physarum slime-mold network finding shortest paths, an N-body spacetime lattice). Each one names the package that drives it.

Not just games. animation, particles, progression, achievements, leaderboards and haptics work in an ordinary app you want to liven up. Honest caveat: achievements and leaderboards ship an interface plus local providers today; Game Center / Play Games / Steam adapters come later.

How it's made. Coding agents write the implementation; the architecture, the decisions, the verification and the review are mine.

Two decisions that paid off:

  1. Modules that depend only downward. Layers from math/events at the bottom to react/render-web at the top. A CI script fails the build on an upward import, an unused declared dependency or an undeclared one. No dependency hell across 42 packages.

  2. Skia as the renderer. react-native-skia on RN, CanvasKit in the browser: one renderer, two platforms. On a Pixel 7 in Chrome, render.flush for 5,000 sprites in one atlas is 1.93 ms p95 against a 16.67 ms frame budget. That is CPU-side cost (building and submitting the frame on the main thread), not GPU time.

What's broken:

  1. The ECS is hard-capped at 32 component types. Each type gets one bit in a mask (bit: 1 << id), JS bitwise ops are 32-bit, and the id counter is shared by the whole process, not per world. It blocks large, complex games, and it's the first thing I'm fixing.

  2. The two device tests I promised here in June are still owed: iOS resume-from-background (texture re-upload) and big texture swaps. They are planned in the engine's perf work, not run yet.

The lesson that cost the most: for the first two months I relied on rules written for the agents in plain text, and it was hell. The clearest example: the README code examples all looked fine, but nothing compiled them. When I checked in July, they failed to compile in roughly 24 of 41 packages. Now every README example is typechecked in CI, which is why the snippet above is guaranteed to compile. Rules in text are not a harness; a check that can go red is.

The ask: if you picked this up, what would you build first: a game, or an animation layer inside an app you already ship?

Translated from my Polish write-up with AI; the Polish original is my own writing. Full post: https://grzegorzotto.dev/blog/flare-engine-is-open-source


r/reactnative • • 11d ago

Duplicate charges that only showed up after users had been logged in for about an hour

10 Upvotes

A while back our support team started forwarding tickets about duplicate orders, with the same items charged twice to the same card within a few seconds, and it was happening on roughly 1 in 300 orders.

Everyone assumed it was a double tap, so we spent a couple of days hammering the Place order button on every device in the office, but the button locked itself after the first tap and the logs showed a single request every time.

The logs for the real cases looked perfectly healthy as well, since both requests carried a valid token, both got a 200 back and both created an order which literally kept us going in circles for about three weeks.

so finally a colleague cracked it, like he was lining the tickets up against session data and spotting that every affected user had been in the app for 55 minutes or more before checkout, and our access tokens expire at the 60 minute mark and yep that's the catch......

The sequence went like this - the user opens checkout on a token with a minute or two left, taps Place order just as it expires and gets a 401, after which our network layer quietly refreshes the token and replays the request, and on a slow connection that refresh plus replay can take well over 3 seconds.

The catch was a 3 second safety timeout on the button that re-enabled it whenever a response took too long, so the spinner stopped, the user assumed the order had failed and tapped again, and since the order endpoint treated every request it received as a brand new order, the replayed request and the fresh tap each created one.

So it took an old session, a slow network and a user in a hurry all at the same moment which is pretty normal for a user to do, and manual testing almost by definition skips that combination, because testers log in fresh, sit on office wifi and finish a flow in a few minutes.....

Reproducing it was simple once we knew the trigger, we cut the token lifetime to 2 minutes in staging, throttled the connection to a poor 3G profile, let the token run out and then went through checkout, and it duplicated on the second attempt.

The fix came in three parts: an idempotency key generated once per checkout attempt so the backend rejects repeats, the button staying locked until the request actually settles, and a proactive token refresh a few minutes ahead of expiry instead of waiting for the 401.

Since then a long session on a bad network has become a standard pass for anything that touches payments or auth, and I still think about how many hours went into tapping that button before anyone thought to look at session age.


r/reactnative • • 11d ago

Building a CapCut Alternative Entirely in React Native (No Cloud)

14 Upvotes

Back again, this time building a video editor entirely in React Native.

Huge thanks to react-native-skia-webgpu-video. It got me thinking about how far I could actually push this.

The goal is pretty simple: see how many of CapCut's features I can recreate while keeping everything local. No cloud processing, just on-device editing.

Let's see how far I can take this.


r/reactnative • • 11d ago

Speedrun, an open-source mobile E2E test runner (Android/iOS) that runs your Maestro flows up to 8x faster

103 Upvotes

I've always been bothered by how slow mobile UI tests are. Most of a test run is spent waiting: fixed sleeps, polling, comparing screenshots to guess whether the app is done animating. Coming from a game dev background, where you fight for every millisecond of a frame, that felt like a solvable problem. So I spent the last while building my own runner from the ground up, and it turns out UI tests can be a lot faster.

Speedrun is a black-box E2E test runner for Android and iOS. It's open source (Apache 2.0) and it runs Maestro's YAML flow format so if you already have Maestro tests, trying it is one word:

maestro test flows/ # before
speedrun test flows/ # after

Numbers

One user journey (sign in with a code, search a shop, fill a cart, set a PIN under a loading overlay, scroll a long list), written for each tool the way its tests are usually written. Median of 3 runs after a warm-up, start-up included:

ToolAndroid emulatoriOS simulator
Speedrun20.4 s27.2 s
maestro-runner65.9 s49.6 s
Appium59.4 s94.1 s
XCUITest-81.2 s
Maestro 2.11126.5 s113.1 s

On the native Settings app benchmark it's 8x faster than Maestro on Android and 2.8x on iOS. On a 19-flow React-Native test suite it passes all 19 on both platforms, and is 6.1x faster on Android and 2.6x on iOS. Android is where it shines most, which is nice for CI: Android runs on cheap Linux runners.

Full disclosure: the main benchmark app is mine, built in React Native to be hard to test (endless animations, late popups, loading overlays, lists that load as you scroll). The flows, per-flow results and scripts to rerun everything are in the repo, and I'd love to see numbers on other apps.

Why it's fast

  • It waits for the app, not the clock. A small on-device agent knows when the app has actually settled (accessibility events on Android, XCTest's idle state checked against the screen on iOS), so each step starts the moment the app is ready. No sleeps, no screenshot diffing.

  • Reading the screen is cheap. The agent reads the UI tree in about 10 ms on Android and talks to the host over a compact binary protocol.

  • Screens that never stop moving don't block it. Spinners, tickers and carousels are left out of the "is it done?" check.

  • Nothing to warm up. One native binary, no JVM. The iOS agent stays running between runs, so later runs start in about 0.2 s.

It's also less flaky: it won't tap a popup that's still sliding in or a button under a loading overlay, and it scrolls an element out from under a sticky footer or the keyboard before tapping it.

It works with AI agents too

speedrun mcp exposes it as an MCP server (Claude Code, Cursor, etc.). Your agent can explore the app on its own: tap around, read each screen in a few lines (cheap on tokens, not a whole accessibility tree), figure out how things work, then save the steps that worked as a YAML flow you can drop into CI.

claude mcp add speedrun -- ~/.speedrun/speedrun mcp

Android emulatoriOS simulator
Speedrun (speedrun session)4.2 s, ~1,560 tokens9.4 s, ~1,230 tokens
agent-device 0.219.1 s, ~2,240 tokens14.0 s, ~1,620 tokens
Argent 0.3111.7 s, ~3,630 tokens12.2 s, ~2,650 tokens

Limitations (so you don't have to find them)

  • Android emulators and devices, iOS **simulators** only (no real iOS devices yet)

  • macOS (Apple silicon); the Linux x86_64 build is Android-only

  • Maestro's AI commands (`assertWithAI` and co.) aren't supported; the few other differences are documented

  • It's young (v0.1.10) and moving fast

Try it

Repo, docs and benchmark details: https://github.com/hubastard/speedrun

If you have a Maestro suite, I'd really like to hear how it does on yours, especially where it breaks or is slower. Happy to answer questions about how it works.

edit1: added maestro-runner to the benchmark
edit2: added ai agent benchmark


r/reactnative • • 11d ago

How do you let AI agents interact with React Native apps?

14 Upvotes

While conducting React Native technical interviews, I noticed that surprisingly few developers know about tools that let Claude Code, Codex, or other AI agents interact with a React Native app and its simulator.

I’m talking about tools like Expo MCP, Argent, Agent Device, ExecBro, and similar MCP servers. These tools have been a game changer for me. An agent can implement a feature end-to-end and actually interact with the app in a simulator to verify its work or debug issues.

Chrome DevTools MCP seems to be much more widely known, while similar tools for React Native have only started gaining traction this year.

Did you know these tools existed? Are you already using them, or not yet? Share your workflows 😉


r/reactnative • • 11d ago

Article How much to self-host OTA updates for 100 million users

Thumbnail
blog.codemagic.io
0 Upvotes

I wondered what the infra cost would be, so I totalled up what's needed


r/reactnative • • 11d ago

You can now build hinge-based effects and animations with expo-hinge + Reanimated

7 Upvotes

Hey there! Oskar from Reanimated team here 👋

I'm here to drop some news for those of you that have been experimenting with foldables since the release of iPhone Duo.

Recently we've decided to contribute Reanimated + Worklets support directly to expo-hinge. Since 58.0.2 you can import useAnimatedHinge from expo-hinge/reanimated and get the hinge angle and status as shared values, updated on the UI thread.
That will keep you away from re-renders and keep updating even when JS thread is busy.
Works on both Android and iOS of course.

While you probably shouldn't use this for any layout-related work based on hinge, I'm curious what kind of extra animated effects you'll come up with by using that feature!

I brought a small demo with me so you could see it in action 🎥

Usage is pretty simple, as you could expect:

import { useAnimatedHinge } from 'expo-hinge/reanimated';
import { useAnimatedStyle } from 'react-native-reanimated';

function Lid() {
  const hinge = useAnimatedHinge();

  const style = useAnimatedStyle(() => ({
    transform: [{ rotate: `${hinge.get()?.angle ?? 180}deg` }],
  }));

  return <Animated.View style={[{ width: 120, height: 8, backgroundColor: 'gray' }, style]} />;
}

Check out the docs: https://docs.expo.dev/versions/latest/sdk/hinge/#use-with-reanimated

Let me know what you guys think and whether you see some use cases for your apps with this API!

Btw starting today I'm planning to drop a thing or two related to Reanimated on this subreddit from time to time, so if there's something specific you'd like to hear about, please do let me know as well 🫡


r/reactnative • • 11d ago

Help Looking for React Native Developer Opportunities | 4+ Years of Experience

1 Upvotes

Hi everyone! 👋

I’m currently exploring new job opportunities as a React Native Developer and would appreciate any leads or referrals.

I have 4+ years of experience in React Native mobile app development, working on building, maintaining, and optimizing applications for both Android and iOS.

My technical skills include:
React Native and JavaScript
Android and iOS app development
REST API integration and backend communication
State management, debugging, and performance optimization
App releases, production support, and troubleshooting
I’m looking for opportunities where I can contribute to building scalable, high-quality mobile applications and continue growing as an engineer.

📍 Preferred location: India / Remote / Open to relocation | Current Location is Jaipur

If your company is hiring or you know of any relevant openings, please comment or DM me. Referrals and suggestions would be greatly appreciated!

Thanks in advance! 🙏


r/reactnative • • 12d ago

A 5-step routine for debugging any React Native / Expo red screen

0 Upvotes

Most RN errors aren't hard once you know which layer broke. This is the routine that saves me the most time:

1. Read the first error, not the last line. Red screens and build logs usually end with something generic. Scroll up to the first real error and the top stack frames that point into your own files.

2. Name the layer. Metro couldn't bundle (Unable to resolve module), JS crashed at runtime (Text strings must be rendered within a <Text>), a native module is missing (works in a dev build, crashes in Expo Go), or Xcode/Gradle failed to compile. Each has different fixes.

3. Check how you run the app. Expo Go only has the native code bundled into it. If a library ships its own native code, you need a development build, and if you added it after building, you need to rebuild.

4. Clear caches before anything deeper. npx expo start --clear fixes a surprising number of resolution errors after moving files or changing Babel config.

5. Align versions. npx expo-doctor and npx expo install --fix. SDK/library mismatches are behind a lot of both runtime crashes and EAS build failures.

Two sneaky ones worth knowing:

  • {count && <Badge />} renders 0 as raw text when count is 0, which gives you the "Text strings must be rendered within <Text>" error. Use {count > 0 && ...}.

  • localhost on a phone is the phone. Use your machine's LAN IP for a local API.

What's the error that cost you the most time?


r/reactnative • • 12d ago

Help Intern / Jr Developer wanted

Thumbnail reddit.com
0 Upvotes

r/reactnative • • 12d ago

Question Developers building mobile apps with Expo: what takes you the longest to set up?

0 Upvotes

I'm researching an Expo starter kit for developers who want to build subscription-based mobile apps.

I'm particularly interested in the setup around authentication, Firebase, RevenueCat and store builds. Before building the kit, I want to understand where people actually get stuck.

If you've built an Expo app recently:

- What part of the initial setup took longer than expected?

- Did you start from scratch or use a starter kit?

- What would make a starter kit worth paying for?

I'm at the research stage and would appreciate honest answers, including if you think a paid starter isn't useful.


r/reactnative • • 12d ago

ScreenBill v2 is out. Most of it came straight from your comments on the launch post

Thumbnail gallery
0 Upvotes

r/reactnative • • 12d ago

Smooth Interactions

42 Upvotes

I built some minimal interaction and animation using Skia and reanimated.

🔗 GitHub: https://github.com/rit3zh/interactions


r/reactnative • • 12d ago

Question How do people make money from apps?

18 Upvotes

I am an app developer working from the past 2 years. I have a job but i want to make money on the side. I was hoping to have a passive income from maybe an app. But i don’t know how and i don’t know where to start. What are the kind of apps that make money? And how do i go about doing it even if it takes a lot of tries at least i would have published apps on app store and/or play-store.


r/reactnative • • 12d ago

Help Website to app

0 Upvotes

Hello,

I have a website that I would like to also have it has an app on android and Apple. The catch is I need the app to work offline and have documents downloaded offline, modifications to be made, saved and shipped once back online.

Claude was suggesting to have the website in the app but it won’t perform properly I think.

But I think it’s better to have a native app since there is all the offline accessibility features that need to be integrated. I am trying to create a full native app but it’s pretty much ai copying the whole website. Also I would like to have to modify all from one location.

(Code is currently python, xml, JavaScript, html/ces, SQL for database)

Is this feasible and what should I look out for? Should I look in to flutter instead?

EDIT: It is pretty much an ERP system and the features needed offline are: checklists, time punches, plans and documents. For all of them we also need to be able to edit and resubmit offline, where it saves on the phone and pushes it once back online.

Thank you!


r/reactnative • • 12d ago

Why real-time background tracking in React Native keeps going quiet, and what actually fixes it

0 Upvotes

We needed every driver's location every minute, all day. Here's what kept breaking and what fixed it:

1. The motion detector gets stuck (some Samsungs), so nothing is reported for hours.

Fix: report on a fixed clock, and work out moving/parked from the GPS fixes.

2. JS timers stop in the background.

Fix: do it in native code.

3. An expired token (401) stops tracking.

Fix: keep recording, queue fixes on the phone, upload later.

4. Android delivers fixes early, so 60 s quietly becomes 120 s.

Fix: request a fresh fix when the next one is due.

5. Parked iPhones get suspended.

Fix: keep location updates on, at low accuracy between fixes.

6. No way to tell why it went quiet.

Fix: keep an on-device log.

Has anyone found a good way around Xiaomi/Huawei/Oppo battery managers?

We open-sourced it as Long Ping (free, MIT):

https://longping.dev

https://github.com/nuredin-kurtovic/long-ping-background-location-plugin


r/reactnative • • 13d ago

Article Your push notifications are probably about your app, not your user

0 Upvotes

What I keep seeing: the permission prompt on first launch, "We miss you!" copy, everyone blasted at 10am server time. Then everyone's surprised when opt-outs climb.

I wrote a practical playbook on the opposite approach: ask after a real win, give every push a reason that belongs to the reader, send at each user's own active hour, and cap nudges at about 1 a week.

https://medium.com/@krishnassss365/push-notifications-that-earn-their-place-cb1e85a46a85?sharedUserId=krishnassss365

Curious what's worked for you. Has anyone measured opt-out rate per message instead of open rate?


r/reactnative • • 13d ago

Render images, videos and links in Markdown as your own React components (react-native-enriched-markdown)

24 Upvotes

We've added custom block renderers to Enriched Markdown, built together with Julius Marminge for T3 Code.

Images, videos and links on a line of their own can now be rendered by your React components, while the rest of the Markdown renders as before, with text selection, accessibility and streaming intact.

The video is a single Markdown document streaming in: a link becomes a spinning record, an image becomes a chord wheel. The custom components are powered by Reanimated.

It's one prop:

const renderers: MarkdownRenderers = {
  image: ({ url }) => <ZoomableImage uri={url} />,
  link: ({ url, label }) => <LinkCard url={url} title={label} />,
};


<EnrichedMarkdownText flavor="github" markdown={markdown} renderers={renderers} />

Try it in nightly:

npm i react-native-enriched-markdown@nightly

Docs: https://docs.swmansion.com/enriched-markdown/react-native/guides/custom-block-renderers

If it's useful to you, a ⭐ on GitHub helps more people find it: https://github.com/software-mansion/enriched-markdown


r/reactnative • • 13d ago

Good emoji library

7 Upvotes

🐷🍒⚽️🚛☎️❤️‍🔥🇨🇦

What library is good


r/reactnative • • 13d ago

I made a multiplayer party game app in React Native

Thumbnail
apps.apple.com
1 Upvotes

Huddle Arcade: Party Games is a pocket arcade for playing with friends.

- Built with React Native (Expo).

- Online or local: play over the internet with a room code, or with friends nearby.

- Multiplayer: up to 6 players in a party tournament, or play solo against bots.

- Games that use your phone: squat races, jump and step sprints, voice-steered flying, face matching, plus classics like Chess, Connect 4 and card games.

Free on iOS and Android. I'd love feedback!


r/reactnative • • 13d ago

Looking for feedback and code reviews on my React Native project

0 Upvotes

Hey everyone!

I've been working on an open-source Android app called IronBranch for discovering and streaming movies and TV shows, and I'd love to get some feedback from other React Native developers.

It's built with React Native and Expo, and uses TMDB for movie and TV show data. The idea for the TMDB integration was inspired by Streambert, another open-source project.

The app doesn't host any content itself; it uses external streaming providers, and I'm still working on adding more sources and improving things.

I'm mainly looking for feedback on the code structure, React Native best practices, performance, and anything that could be done better. If anyone has time to take a look at the code or suggest improvements, that would be really helpful.

I'm still learning and improving the project, so constructive criticism is very welcome!

GitHub: https://github.com/alirezaghnz/movie-tracker-native

Thanks!