Open
Description
Description
This is for Android.
When you check out this branch, it runs, but obviously no native modules are registered:
b9e6e02cb0de84da9694ca9efa343b8b5c4560a5
On this one it runs:
d0b0b176c6e08acdf2ebdf0254c746b872a94971
but it gives this error: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found.
Steps to reproduce
git clone https://github.com/karol-bisztyga/RNFbjniExample2.git
cd RNFbjniExample2
git checkout rt-bug-repro
React Native Version
0.80.0
Affected Platforms
Runtime - Android
Areas
TurboModule - The New Native Module System
Output of npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Pro
Memory: 104.45 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.1.0
path: ~/.nvm/versions/node/v21.1.0/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v21.1.0/bin/yarn
npm:
version: 10.2.0
path: ~/.nvm/versions/node/v21.1.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.4
- iOS 18.4
- macOS 15.4
- tvOS 18.4
- visionOS 2.4
- watchOS 11.4
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.26053.27.2432.13536105
Xcode:
version: 16.3/16E140
path: /usr/bin/xcodebuild
Languages:
Java:
version: 22.0.2
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 19.0.0
wanted: 19.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.80.0
wanted: 0.80.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Stacktrace or Logs
2025-06-24 15:38:50.202 4648-4705 ReactNativeJS com.rnfbjniexample2 E Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","PlatformConstants"]}, js engine: hermes
2025-06-24 15:38:50.203 4648-4705 ReactNativeJS com.rnfbjniexample2 I 'Failed to print error: ', 'TurboModuleRegistry.getEnforcing(...): \'PlatformConstants\' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","PlatformConstants"]}'
2025-06-24 15:38:50.210 4648-4705 ReactNativeJS com.rnfbjniexample2 E [runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","PlatformConstants"]}, js engine: hermes
2025-06-24 15:38:50.214 4648-4705 unknown:BridgelessReact com.rnfbjniexample2 W
MANDATORY Reproducer
https://github.com/karol-bisztyga/RNFbjniExample2
Screenshots and Videos
