A framework for building native applications using React
Implement callFunctionOnModule on BridgelessCatalystInstance (#56804)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56804 Implement `BridgelessCatalystInstance.callFunction` using the existing `ReactHostImpl.callFunctionOnModule` so callers that go through `CatalystInstance` (rather than directly through `JavaScriptModule` proxies) work in bridgeless mode. While here, propagate nullability of `args` through the call chain. `InvocationHandler.invoke` is documented to pass `null` when the proxied method has no parameters, and the existing `Arguments.fromJavaArgs(args)` would NPE in that case. The JNI layer substitutes an empty `folly::dynamic::array()` when `args` is null, so the JS call still has a well-formed argument list. Changelog: [Android][Fixed] JSModule method without args are correctly dispatched Reviewed By: mdvacca Differential Revision: D104901132 fbshipit-source-id: 4092bce9327a3d1991936076a9cb1df05d189a85
P
Pieter De Baets committed
949b8049dfeb4f5cf449284f9d37093641757a1a
Parent: 8dfd548
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 5/19/2026, 11:40:22 AM