Help for Realm® apps

Realm® build errors in 2026 and how to fix them

The last realm-js release is 20.2.0, from August 2025. Since then, new React Native, Xcode, Expo and Google Play versions have broken builds that used to work. Each page below gives the exact error, the cause, a manual workaround when there is one, and the fix with afterdb.

Updated 9 November 2026.

The fix with afterdb

afterdb is an independent open-source fork of the realm-js SDK v20 (Apache-2.0) that we maintain. It fixes the build and install errors above for apps on realm 20.x without Device Sync. For 16 KB pages, every 64-bit native library in our test app passes the 16 KB checks. It is not an official Realm release.

"realm": "npm:@pomwik/afterdb@20.3.0",
"@realm/react": "npm:@pomwik/afterdb-react@0.20.1"

Then reinstall, run pod install on iOS, and rebuild. For Expo dev builds, run npx expo prebuild --clean. Your code keeps import Realm from "realm".

Tested with React Native 0.88.1 on Android 7, 11 and 16 emulators and on Android 16 with 16 KB pages; with React Native 0.86.3 and 0.87.1 and Expo SDK 56, 57 and 58 on the 16 KB emulator; and on the iPhone simulator with React Native 0.88.1 on Xcode 26.4.1 and 26.6. Not tested yet: real devices, iOS with React Native 0.86 or 0.87 or with Expo, and realm 10, 11 or 12. Details: the compatibility matrix on GitHub.

Not fixed by afterdb

Planning to leave Realm?

We compare afterdb, op-sqlite, expo-sqlite, WatermelonDB, PowerSync and Ditto in Leaving Realm in 2026: your options.

Need help? Send your versions and the full error for a free 15-minute check. We reply within 12 hours.