r/reactnative • u/chatstietottom5 • 13h ago
r/reactnative • u/rnp-infinity • 10h ago
lazymobile 0.4.0: one terminal screen for simulators, emulators, Metro port forwarding and app logs (open source)
v0.4.0 came out this week. It adds `lazymobile dev` for Metro, app launch and stop, and log filters.
Running a React Native app means juggling a simulator, an emulator, adb reverse for Metro, the dev menu and logcat. lazymobile puts them in one terminal dashboard.
- One list of iOS simulators, Android emulators and connected phones. Boot, cold boot, erase and create them.
- `lazymobile dev`: forward Metro's port (8081), open the developer menu and reload the app, on an Android emulator or phone.
- Live logs per app, followed across restarts, with filters, saved presets and crashes marked in red.
- In an Expo project: list EAS builds, install a finished build on a running simulator or emulator, start and cancel builds.
- Run your own project commands from a .lazymobile.json on the selected device. It shows the exact command and asks first.
- The same features as plain commands with --json, for scripts and coding agents.
brew install --cask 0xrnp/tap/lazymobile
https://github.com/0xrnp/lazymobile
Free and open source (MIT). The developer menu and reload only work on Android for now. Which part of your daily run, build and debug loop still has you leaving the terminal?
r/reactnative • u/Ok-Percentage-1091 • 5h ago
News Real-time 1v1 sudoku with Expo + Firebase: what worked, and how I fixed empty lobbies with "ghost" replays
I shipped a sudoku game with live 1v1 duels to both stores, built solo with Expo. Some notes that might help anyone doing real-time features without a dedicated game server.
Architecture
- Expo / React Native with Expo Router, SQLite for local games, a small kv store for the active game.
- Moves go through a Cloud Function. Clients never write to the battle state; each move is a callable that checks it against the solution, counts mistakes and updates the shared state. Slower than peer-to-peer, but cheating is basically off the table.
- Live state in Realtime Database, clients subscribe to it. Fine latency for a game where a move every few seconds is normal.
- Rating: plain Elo with K=32, seasons of four months, and at season end everyone's rating moves halfway back to the start.
The empty lobby problem
With a small player base, quick match often finds nobody. I record every finished match as a list of timestamped events (positive = correct cell, negative = mistake). When nobody joins within a few seconds, the server picks a recorded match at a similar rating and difficulty, scales it to the new puzzle's blank count and replays it. The bot doesn't "solve" anything, the server just reveals events as time passes. It plays like a human because it was one, hesitation and mistakes included.
Difficulty grading
The generator rates each puzzle with a technique-based solver (naked/hidden singles, pointing pairs, box/line, naked triples, X-Wing, Swordfish, XY-Wing) instead of counting clues. The hardest technique needed decides the level.
Things I'd do differently
- Put anything that affects ranking behind a server call from day one. Retrofitting validation is painful.
- Keep native modules minimal: every one means a new store build instead of an OTA update.
Happy to go deeper on any part. If you want to see it running: Android ยท iOS
r/reactnative • u/AwareWeb2680 • 9h ago
Chess demo
I am author of React native tgfx and this is using that.
(I just wanted to try Reddit lol)
r/reactnative • u/OrbeoMe • 11h ago
A Postgres RLS fix made opening a chat 40ร faster (117 ms โ 3 ms)
reddit.comr/reactnative • u/Competitive-Yak4291 • 18h ago
I recreated Safari's UICollectionView tab overview reflow animation using react-native-reanimated
r/reactnative • u/TemporaryBuyer3806 • 7h ago
Expo fitness onboarding: rolling digits inside clipped windows
r/reactnative • u/Abad_01 • 7h ago
I built an on-device passport MRZ scanner for VisionCamera v5 (open source)
Couldnโt find an MRZ scanner that works with VisionCamera v5, so I wrote one: react-native-vision-camera-mrz.
- Apple Vision on iOS, ML Kit on Android, fully offline, no license key
- Only reports a result when every check digit matches and several frames agree
- Drop-in
<MrzScanner />or a hook for your own camera - Tested on real iPhone and Android phones
npm: https://www.npmjs.com/package/react-native-vision-camera-mrz
GitHub: https://github.com/AbadurRehman/react-native-vision-camera-mrz
Feedback welcome, especially which documents to support next (ID cards are planned).
r/reactnative • u/Awkward-Prize-66 • 11h ago
FYI ๐พ I shipped a cozy puzzle game with Expo SDK 58. Hereโs what worked and what bit me.
r/reactnative • u/DifferentTicket2881 • 3h ago
Question How are developers navigating RN jobs right now?
For context I have more than 6 years of experience in React Native in both startups and big tech across multiple industries and have delivered 5M+ user apps and have scaled from 0โ>1 as well.
Iโve been unemployed for more than 6 months now and its the first time for me to go without a job this long, I get interviews however and even in the interviews I get told that this was an amazing interview later I get ghosted or the offer is retracted.
I wanted to ask if there are people who are also in a similar position? If you have made it to the other side what were the key pointers that helped you land an offer? Because Iโm incredibly frustrated as to how to go about things now.
r/reactnative • u/No_Grade2981 • 14h ago
Tutorial I built an open-source library to write iOS Live Activities & Android Interactive Widgets in 100% TypeScript/JSX (Zero Swift/Kotlin required)
Hey everyone ๐,
If you have ever tried adding iOS Live Activities (Dynamic Island) or Interactive Home Screen Widgets to a React Native or Expo app, you probably know the pain:
- You have to write and maintain Swift/SwiftUI for iOS and Kotlin/RemoteViews for Android.
- Handling 2-way interactivity without launching the full app is tricky (especially AppIntents on iOS 17+ and PendingIntents on Android).
- Android widget touch areas get misaligned due to launcher letterboxing / aspect ratio scaling.
- Keeping timers running on Lock Screen usually drains battery if not backed by native OS hardware chronometers.
To fix this for my own projects, I spent the last few months building react-native-live-widgets (v1.2.3) โ an end-to-end declarative widget engine for React Native and Expo.
๐ What it does:
- 100% TypeScript & JSX: Write your widget layout just like standard React components (<VStack>, <HStack>, <Text>, <Progress>, <Button>, etc.). Zero Swift or Kotlin knowledge needed.
- Dynamic Island & Live Activities: Native expanded, compact leading/trailing, minimal, and lock screen presentations with real-time push update support.
- Pixel-Exact Touch Layer (v1.2+): On Android, it replaces rigid grid overlays with a dynamic rn_hit_layer that auto-compensates for fitCenter letterboxing โ buttons and checkboxes register clicks with 100% precision.
- Zero-Battery Hardware Timers: Direct integration with system hardware clocks (UI.Timer on iOS and native android.widget.Chronometer on Android). It ticks down smoothly without waking up the JavaScript thread or draining battery.
- 2-Way React Hook: Handle widget clicks inside your React Native JS runtime seamlessly with useWidgetAction((actionId, payload) => ...).
- Background Remote Sync: Fetch JSON updates from your backend even when the app is force-killed via Widget.setRemoteConfig().
- Swift 6 & iOS 18 Ready: Compiled with Xcode 16 Swift 6 strict concurrency compatibility.
- Automatic String Catalog Linking: Auto-generates and links Localizable.xcstrings and res/values-*/strings.xml for full multi-language Widget Gallery support.
- All-in-One CLI Setup: Run npx react-native-live-widgets init to auto-configure iOS WidgetKit extension targets and Android Widget providers in seconds (supports Expo Config Plugins & Bare RN).
๐ป Quick Example:
tsximport React from 'react';
import { Widget, VStack, HStack, Text, Button, Timer } from 'react-native-live-widgets';
export const DeliveryWidget = () => (
<VStack padding={14} backgroundColor="#0F172A" cornerRadius={16}>
<HStack justifyContent="space-between" alignItems="center">
<Text typography="headline" color="#38BDF8">Order On The Way ๐ต</Text>
<Timer targetTimestamp={Date.now() + 15 * 60 * 1000} color="#F59E0B" isCountdown />
</HStack>
<Text typography="caption1" color="#94A3B8">Driver is 1.2 km away</Text>
<Button
title="Contact Driver"
actionId="CALL_DRIVER"
backgroundColor="#2563EB"
color="#FFFFFF"
/>
</VStack>
);
// Register widget
Widget.register('DeliveryWidget', DeliveryWidget);๐ Links & Try it out:
- Interactive In-Browser Live Simulator: Web Demo (You can test Dynamic Island stretching, equalizer audio waves, and widget clicks directly in your web browser)
- GitHub Repository: GitHub
- NPM Package: npm install react-native-live-widgets
- AI Agent Standard: Includes llms.txt and Cursor/Claude Code skill for zero-hallucination AI generation.
It's MIT licensed and completely open-source. I would love to hear your thoughts, feedback, and edge-cases you encounter with widgets!