◉RORK LABJP
●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
Articles/Dev Tools
⬡ Dev Tools/2026-05-30Intermediate

Fixing 'TurboModuleRegistry.getEnforcing could not be found' in Rork

A practical walkthrough of the 'TurboModuleRegistry.getEnforcing(...): could not be found' error that became common once the New Architecture went default. Covers Expo Go vs. dev builds, when a native rebuild is required, and how to isolate libraries that aren't New Architecture-ready.

Rork622New Architecture4TurboModuleExpo240Error Handling9

One morning I launched a Rork-generated app exactly the way I always do, and was greeted by an unfamiliar red screen:

TurboModuleRegistry.getEnforcing(...): 'RNSomeModule' could not be found.
Verify that a module by this name is registered in the native binary.

I had not touched a single line of JavaScript. Tracing it back, the trigger was the New Architecture (Fabric / TurboModules) becoming the default in Expo SDK 53 and later. Plenty of people are stuck on this same screen, so here is the isolation routine I settled on while migrating six wallpaper apps to the New Architecture.

What the error is actually saying

getEnforcing means "a native module with this name must exist, so go find it." Its sibling get returns null when nothing turns up, but getEnforcing throws immediately if the module is missing.

So this error is telling you: "JavaScript tried to call the native module RNSomeModule, but the native binary currently running on the device has no module registered under that name." The key insight is that the problem lives in the native binary, not in your JS. Miss that, and you can rewrite JavaScript all day without getting anywhere.

In my experience the cause almost always collapses into one of four buckets.

Cause 1: You're running inside Expo Go

This is the most common one. Expo Go is an app that ships with a fixed, predetermined set of native modules. Any library you added — react-native-mmkv, a billing SDK, your own native module — simply does not exist inside Expo Go.

Checking is easy: look at how you launched.

# Goes through Expo Go -> your custom native modules won't run
npx expo start
 
# What you actually need -> a dev build that includes your modules
npx expo start --dev-client

The fix is to make a development build.

# Add expo-dev-client
npx expo install expo-dev-client
 
# Produce a dev build that runs on the device (cloud build example)
eas build --profile development --platform ios

Think of a development build as "Expo Go rebaked with your exact set of libraries." Once it is installed, your JS changes keep hot-reloading just like before.

Cause 2: You updated JS but never rebuilt the native side

This often hits right after you npm install a library that contains native code. Installing the new library that provides RNSomeModule does nothing to the binary already on your device — it is still the old one, with no record of the new module. Only the JS bundle moved forward; the native side never caught up.

You need a native rebuild.

# Regenerate the native projects first
npx expo prebuild --clean
 
# Reinstall Pods on iOS
cd ios && pod install && cd ..
 
# Build again from native
npx expo run:ios

When "I fixed and saved my JS but it still breaks," you have usually skipped the native rebuild. Whenever you add or update a library, remember to rebuild rather than reload — it saves a surprising amount of wasted time.

Cause 3: The library isn't New Architecture-ready

If the error survives a clean rebuild from prebuild --clean, the library itself may not support TurboModules yet. Older libraries are written against the legacy Bridge, and the New Architecture runs in bridgeless mode where they can't be resolved as TurboModules.

First, pin down which library is responsible. Take the module name from the error (the RNSomeModule part) and cross-reference it against the library's README and React Native Directory to see whether New Architecture support is listed.

If a compatible release exists, update.

npx expo install react-native-some-module@latest

If no compatible version exists yet, temporarily turning the New Architecture off is the pragmatic move. Set this in app.json:

{
  "expo": {
    "newArchEnabled": false
  }
}

After changing it, always rebuild starting from npx expo prebuild --clean. Editing app.json alone changes nothing. Treat this as buying time, not a permanent fix. During my own migration I replaced incompatible libraries one at a time, then flipped newArchEnabled back on once they were all sorted.

Cause 4: Wrong module name or a flawed custom spec

If you write native modules yourself, the spec name fed to Codegen and the name registered in the native implementation can drift apart. If you call getEnforcing('Foo') but the implementation registers itself as Bar, of course it won't be found. Make sure three places agree: the spec file name (e.g. NativeFoo.ts), the registration name in @ReactModule / RCT_EXPORT_MODULE, and the call site.

A quick isolation order

When in doubt, knock these down from the top — it's the fastest path.

  1. Are you on Expo Go? (-> switch to a dev build)
  2. Did you rebuild natively after adding the library? (-> rebake from prebuild --clean)
  3. Is the library New Architecture-ready? (-> check the Directory; if not, temporarily set newArchEnabled: false)
  4. For a custom module, do the registration names match?

Steps 1 and 2 resolve the majority of cases. Only once you reach step 3 should you start suspecting library compatibility.

Avoiding the same rut

Migrating to the New Architecture all at once, across every app, makes isolation hard. Of my six apps, I migrated the one with the fewest dependencies first, nailed down the routine above, then rolled it out to the rest. Surfacing the sticking points on app number one made apps two through six finish remarkably quietly.

When the error appears, the first thing to recall is: this is a native-binary problem, not a JavaScript problem. Hold onto that, and the fix will fit into one of the four drawers we laid out today. I hope it saves someone else from stalling on the same screen.

Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

⬡ Dev Tools2026-11-19
New Wallpapers Showed Up Everywhere Except the Filters: Ship the Count and the Category Lists Together
I added 67 wallpapers in one batch. They appeared in the full list and in New, but not under a single category filter, because I had raised the ID limit and forgotten to ship the category lists. Here is a pre-bump check, a client-side way to spot silent fallbacks in an Expo app, and a post-release count against the origin.
⬡ Dev Tools2026-10-30
It runs in development but the iOS Release build dies on launch — checking whether a missing scheme is the cause
In an expo-router app, an app.json with no scheme can crash only the iOS Release build at launch. A triage table for Release-only crashes, how to read the reason from the log, why Debug and Android survive, the two fixes and why one needs a native rebuild, and a pre-submission check.
⬡ Dev Tools2026-10-27
Claude Sonnet 4.5 Leaves the API on November 30. Find the Model IDs Hard-Coded in Your App First
Claude Sonnet 4.5 leaves the API on November 30, 2026, and the date-less alias claude-sonnet-4-5 goes with it. A revised audit script for the model IDs left in your app, server functions, and config, a triage table for what breaks the next morning, and a comparison of where the model name should live.