r/reactnative • • 2d ago

Show Your Work Here Show Your Work Thread

0 Upvotes

Did you make something using React Native and do you want to show it off, gather opinions or start a discussion about your work? Please post a comment in this thread.

If you have specific questions about bugs or improvements in your work, you are allowed 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 • • 9h ago

Flutter vs React Native vs Native Android: What should I choose?

8 Upvotes

I'm new and just exploring Android development and confused about which technology to pick: Flutter, React Native, or Native Android (Kotlin).

If cross-platform frameworks can also access native Android APIs through plugins, what advantages does Native Android actually offer?

I'm particularly interested in features like overlays, home screen widgets, background services, app usage monitoring, and blocking other apps.

For an Android-focused project, what would you recommend and why? What are the major trade-offs?


r/reactnative • • 43m ago

$1 Million Dollars App Business Challenge by End of 2027

0 Upvotes

r/reactnative • • 5h ago

Looking for an android + ios app developer

Thumbnail reddit.com
0 Upvotes

r/reactnative • • 3h ago

Booking movie tickets never looked this smooth🍿

0 Upvotes

r/reactnative • • 21h ago

RN + web in one Turborepo: nothing fancy, but it killed most of our double work

0 Upvotes

It’s not a new idea at all (t3-turbo, Solito etc exist), but figured I'd share how it went on a real client project, a US fintech app.

We moved mobile from Flutter to RN, and web was a separate app. But the most annoying part was the web as it had same business rules, same API calls, and same flows, just written again in a separate app. Any change to limits, statuses, or onboarding meant doing it twice and hoping both sides still matched.

What we ended up with is pretty boring honestly:

  • pnpm workspaces + Turborepo. apps/mobile, apps/web, packages for api, transactions, onboarding, cards and so on.
  • everything non-visual lives in packages: hooks, API types, validation, query keys.
  • UI and navigation stay separate (Expo Router / App Router). No shared screens.
  • domain hooks take the API client as a param. This is probably the main thing. Transactions pagination lives once in packages/transactions, and each app passes its own client with its own token, headers and 401 handling.
  • FSD inside each app, features can't import each other. Some people hate it, but it keeps things from turning into spaghetti.
  • mobile first, but anything web will need goes to packages right away. "We'll extract it later" never happens.

So did it help? Kind of, yes. Rough numbers (team estimate): a feature that needs both mobile and web went from ~2x work to ~1.5x. Not 1x, because the screens still stay their own thing on each platform.

Turbo remote cache also took repeat CI runs from 8-10 min to 30-90 sec, which is just cache doing its thing, but still nice.

Curious how others do it. Do you share UI too (RN Web, Tamagui) or just logic? And is anyone running FSD in RN long term? I'm at Rubyroid Labs, will be around in the comments.


r/reactnative • • 18h ago

Question Genuine question

0 Upvotes

Does anyone need a good debugger for react native / expo that groups every major tool? I have figured out something for Webstorm/Intellije users and i wanna see if anyone is interested, and if it is worth building a VSCode version

Thanks in advance


r/reactnative • • 1d ago

[Showcase] rnui.dev: 505 React Native animations (up from 383 in a month), a prompt for every animation, plus an MCP server and a shuffle button

25 Upvotes

I've added 122 new animations since the last post.

Now there are 505 from 33 contributors.

Two things I said I’d build in that post are live now:

  • MCP: Your coding agent can search the catalogue and get the recordings and GitHub source links. Try asking, “Find me three animated tab bars with source code.” Setup: https://www.rnui.dev/mcp
  • Build prompts: Every demo page now has a Prompt button. Sign in with GitHub or Google to copy a prompt you can give your coding agent to recreate the animation in React Native.

There’s also a Shuffle button for when you want to browse without searching.

Browse the demos: https://www.rnui.dev

Submit your own recording: https://www.rnui.dev/submit


r/reactnative • • 1d ago

Help Build fails. On a ChromeOS for Android.

2 Upvotes

I am trying to create an Android only project with react native, but I can't have it to build.

I am running on a Chromeos arm64 and I have Android SDK, NDK, Ninja, CMake, AAPT, ADB, etc installed.

With "./gradlew clean" it builds the project, but not with "assembleDebug" nor "npx run android".

I have:

node: 20.20.2
npm: 10.8.0
react native: 0.88.1
gradle: 9.4.1
--
buildToolsVersion = "37.0.0"
minSdkVersion = 24
compileSdkVersion = 37
targetSdkVersion = 36
ndkVersion = "31.0.16996043-beta1"
kotlinVersion = "2.2.0"

Here's the output:

> Configure project :react-native-safe-area-context
WARNING: API 'libraryVariants' is obsolete and has been replaced with 'AndroidComponentsExtension'.
It will be removed in version 10.0 of the Android Gradle plugin.
The legacy variant API is disabled by default in AGP 9.0, but can be re-enabled by adding 
    android.newDsl=false
to this project's gradle.properties file.
For more information, see http://developer.android.com/build/r/new-dsl.

To determine what is calling libraryVariants, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

> Task :app:processDebugResources FAILED

[Incubating] Problems report is available at: file:///home/gesf/Repositories/lawstMobile/android/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.4.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
62 actionable tasks: 4 executed, 58 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

AAPT2 aapt2-9.2.1-15009934-linux Daemon #0: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected
AAPT2 aapt2-9.2.1-15009934-linux Daemon #1: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected
AAPT2 aapt2-9.2.1-15009934-linux Daemon #2: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-android-0.88.1-debug.aar (com.facebook.react:react-android:0.88.1) to match attributes {artifactType=android-compiled-dependencies-resources, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/d5146b3e036e066bc8c4a18a4fbb39c7/transformed/jetified-react-android-0.88.1-debug.
         > AAPT2 aapt2-9.2.1-15009934-linux Daemon #0: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform appcompat-1.7.0.aar (androidx.appcompat:appcompat:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/5d72c5a5e5f8f71190a2421fff6f4f77/transformed/appcompat-1.7.0.
         > AAPT2 aapt2-9.2.1-15009934-linux Daemon #2: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform core-1.13.1.aar (androidx.core:core:1.13.1) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/58ba09cce1dd261f23b73f746b96937a/transformed/core-1.13.1.
         > AAPT2 aapt2-9.2.1-15009934-linux Daemon #1: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 15s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
AAPT2 aapt2-9.2.1-15009934-linux Daemon #0: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected
AAPT2 aapt2-9.2.1-15009934-linux Daemon #1: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected
AAPT2 aapt2-9.2.1-15009934-linux Daemon #2: Unexpected error output: /home/gesf/.gradle/caches/9.4.1/transforms/b75a69aa854e4ca1a60ee64c64b60172/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform react-android-0.88.1-debug.aar (com.facebook.react:react-android:0.88.1) to match attributes {artifactType=android-compiled-dependencies-resources, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/d5146b3e036e066bc8c4a18a4fbb39c7/transformed/jetified-react-android-0.88.1-debug. > AAPT2 aapt2-9.2.1-15009934-linux Daemon #0: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > Failed to transform appcompat-1.7.0.aar (androidx.appcompat:appcompat:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/5d72c5a5e5f8f71190a2421fff6f4f77/transformed/appcompat-1.7.0. > AAPT2 aapt2-9.2.1-15009934-linux Daemon #2: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > Failed to transform core-1.13.1.aar (androidx.core:core:1.13.1) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Execution failed for AarResourcesCompilerTransform: /home/gesf/.gradle/caches/9.4.1/transforms/58ba09cce1dd261f23b73f746b96937a/transformed/core-1.13.1. > AAPT2 aapt2-9.2.1-15009934-linux Daemon #1: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does.

Thanks in advance!


r/reactnative • • 2d ago

News This Week In React Native #308: NitroUI, Expo Router, Fabric, RTL, DevTools, Zalando, Safe Areas, Metro, Agents

Thumbnail
thisweekinreact.com
24 Upvotes

r/reactnative • • 1d ago

Tutorial I couldn't find a way to expose React Native app features to Android AI agents (AppFunctions), so I built one

1 Upvotes

Android added AppFunctions. It's basically MCP tools, but on the device. Your app declares functions like "create note" or "add expense", Android indexes them, and AI agents on the phone can call them without tapping through your UI.

The problem: it's all Kotlin, Jetpack, KSP and an XML schema. Nothing existed for React Native or Expo.

So I built expo-app-functions, an Expo module that lets you declare AppFunctions from TypeScript:

export const createNote = defineAppFunction({
  id: 'createNote',
  description: "Creates a note in the user's notes app with a title and an optional body.",
  params: {
    title: t.string('Short title of the note'),
    body: t.string('Full text of the note').optional(),
  },
  returns: { id: t.string('ID of the created note') },
});

// appfunctions.handlers.ts
implementAppFunction(createNote, async ({ title, body }) => {
  const note = await db.notes.add(title, body ?? '');
  return { id: note.id };
});

What works today (tested end to end on an Android 17 emulator):

  • A TS schema with fully typed handlers and runtime validation. Codegen produces the Kotlin, KSP builds it, and Android registers the functions.
  • Calls work when the app is open (about 30 ms) and when it's force-stopped. In the force-stopped case it starts React Native headless in the background and runs your JS handler.
  • Typed errors: throw AppFunctionError('INVALID_ARGUMENT', …) in JS and the agent gets a proper Android exception back.

What doesn't work yet:

  • It's Android only. iOS has nothing equivalent wired up (App Intents is the closest thing, and it's out of scope for now).
  • It needs Android 16+, Expo SDK 58, the New Architecture and a dev build. Expo Go won't work.
  • Cold start from a killed app takes about 6 s on an emulator debug build. That's the biggest open risk, because agents may not wait that long.
  • Only flat params for now (string, int, number, boolean, string list). No nested objects or enums yet.
  • I haven't tested a real Gemini request yet. That needs Google's Connected Apps developer preview.

It's v0.1 and experimental, MIT-licensed, and on npm: npx expo install expo-app-function

I'd really like feedback from anyone building AI features into React Native apps. Is the API shape right? What would you want an agent to be able to do in your app?

#ReactNative #Expo #Android #AI #OpenSource


r/reactnative • • 1d ago

Help me to implement offline maps

2 Upvotes

Is anyone here who has experience in implementing offline maps in a react native app while keeping app size minimum.


r/reactnative • • 2d ago

Question What made you switch state management in React Native, or stick with your first pick?

3 Upvotes

I started with Redux and it worked fine for a while, but the boilerplate started to feel heavy for a smaller app. I tried Zustand next and liked how much simpler the setup felt. For those of you who switched, what finally pushed you to change? And if you stayed with your first pick, what kept you there?


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 • • 2d ago

I made a splash screen CLI for React Native: one image in, iOS + Android splash out (SVG to vector drawable, free dark mode, Expo plugin)

0 Upvotes

I kept losing an afternoon to splash screens on every new app: the LaunchScreen storyboard, an Android theme, installSplashScreen in MainActivity, five density PNGs, a dark variant of all of it, and then finding that Android 12+ cropped the logo to its icon circle anyway.

So I wrote react-native-splashkit. It's a CLI that writes the native files plus a small TurboModule to hide the splash from JS.

npm install react-native-splashkit
npx react-native-splashkit init

import { hide } from 'react-native-splashkit';

useEffect(() => {
  hide({ fade: true });
}, []);

What it does:

  • One image, both platforms. It sizes the logo for iOS and for Android 12+'s 192 dp icon circle, so it isn't cropped.
  • SVG logos become Android vector drawables instead of five PNGs. If the SVG uses something VectorDrawable can't draw, it falls back to PNGs and says why.
  • Dark mode is a flag (--dark-background, --dark-logo), no licence key.
  • Full-screen image mode (--mode full) on both platforms. On Android the system splash can only be a colour plus an icon, so it shows the colour first and the image right after.
  • preview renders the splash to PNGs (phone, foldable, tablet) without building the app.
  • doctor checks the setup and exits non-zero in CI when the native files don't match your config.
  • Edits are idempotent, and undo reverts them. --dry-run and --json are there too.
  • Expo config plugin for prebuild/EAS, in app.json plugins.
  • show() puts the splash back later (e.g. during sign-out). The OS splash can't come back, so it uses an overlay copy.

How it compares, from each project's docs:

splashkitreact-native-bootsplashexpo-splash-screen
Image formatsPNG, JPEG, SVGPNG, SVGPNG
Dark modeFreePaid licence keyYes
Full-screen imageiOS and AndroidNoiOS only (legacy option)

bootsplash is mature and widely used. If it works for you, there's no reason to switch.

Limits, so nobody is surprised:

  • New Architecture only, React Native 0.88+, Expo SDK 58+.
  • Android is tested (bare and Expo, release and debug builds). iOS builds in CI, but I haven't run it on a device or simulator yet. If you try it on iOS, an issue or a comment either way would help a lot.
  • It's 0.1.0, so options may still change before 1.0.

One Android detail I learned the hard way: if you hold the system splash with setKeepOnScreenCondition until JS is ready, it only blocks the activity's own window. Any other window the app shows first, such as RN's debug "Loading from Metro" banner or a dialog, makes Android drop the splash, and you get a black screen until your hide. splashkit hands over to an overlay copy right after onCreate to avoid that.

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

Feedback welcome, especially from people who have fought with splash screens on foldables or tablets


r/reactnative • • 2d ago

Help Looking for a second pair of eyes on an open-source Expo + BLE health app

Thumbnail
gallery
0 Upvotes

Side project, open source, looking for React Native people.

It's an Expo app that talks to a fitness band (a WHOOP MG) over BLE with react-native-ble-manager, stores everything in expo-sqlite with SQLCipher turned on, and does all the analysis on the device, including Android widgets, Health Connect and Apple Health, and background sync on Android. Every screen is in English and Dutch. Every screen also has to hold at 360 dp with font scale 1.3. That one has been humbling.

The core is plain TypeScript. Protocol decoder, analytics and storage are shared with a Node CLI, and a simulated band means you can work on it without owning the hardware.

What I'd really like is someone who has shipped BLE or background work on iOS. A few issues are tagged "good first issue". One is literally: run the iPhone build on a real iPhone and tell me what happens.

Screenshots are from the built-in demo band, so the data is made up.

https://github.com/DarioDML/OpenHoop


r/reactnative • • 2d ago

That is my portfolio using react

0 Upvotes

r/reactnative • • 3d ago

I built a React Native bug reporter whose reports my own server can't read

Post image
3 Upvotes

Testers tend to send bugs as "it doesn't work" plus a blurry screenshot, and then you spend half a day asking which screen, what they tapped, what they typed.

So I built Nabrila. The tester shakes the phone, draws on the screenshot and hits send. You get a link with everything: a short replay, the taps, the console, the network calls. If you use React Navigation or Expo Router it picks up the screen names on its own. The video above is the example report, you can open it without signing up: Nabrila

The part I spent the most time on is the encryption. The report is encrypted on the phone and the key only lives in the link (after the #), so on the free plan my server just stores bytes it can't read. Happy to go into the details in the comments.

It's @nabrila/react-native on npm, MIT. Needs the New Architecture (RN 0.82+), and with Expo you need a dev build, it won't run in Expo Go. Free plan is 1 app and 50 reports a month.

It's not meant for production crashes, Sentry is better for that.

Would you actually use something like this with your testers? If not, what's missing?


r/reactnative • • 2d ago

Help Help please: $5 worth of free credits for the first 30 testers, Will test your app back !

Post image
0 Upvotes

Love AI is already live on iPhone with paying users, and we're now launching on Android. We would love you to test.

  1. Join the group: https://groups.google.com/g/loveai-testers
  2. Opt in: https://play.google.com/apps/testing/com.trueloveai
  3. Download: https://play.google.com/store/apps/details?id=com.trueloveai
  4. In the app, sign in with Google using the same Gmail you used to join the group to get $5 worth of credit

🎁 The first 30 people who opt in get $5 of free credits. Sign in with Google in the app and comment or DM me once you're in.

Please keep it installed for 14 days and tell me anything that feels off. Drop your link and I'll test yours too 🙌

IOS app: https://apps.apple.com/us/app/love-ai-soulmate-companion/id6737462274


r/reactnative • • 3d ago

FYI Built cloud iOS Simulators for coding agents — remote Mac builds + shareable browser links from one CLI command

14 Upvotes


r/reactnative • • 2d ago

I want to make a blogging app. Simple CRUD stuff. Should I go with react native or capacitor.js?

0 Upvotes

r/reactnative • • 3d ago

Help Developing on Mac, running android simulator is maxing my RAM

5 Upvotes

Hi,

I am developing a react native expo app on Macbook Air M4 with 16GB of RAM.

And whenever I am running an android simulator, either for actual build or for simulator its maxing my RAM, especially during the startup. After that it's sitting quite ok at about 5GB of RAM (which is still A LOT). But during the startup it can reach to 16GB of RAM.

I am using Android Studio built in Pixel 10 emulator.

Is there any alternative or something I am doing wrong here?


r/reactnative • • 3d ago

Test Local Apps on a Real Phone Over Cellular Data

Thumbnail instawormhole.com
1 Upvotes