mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Add API for sync function calls
Reviewed By: javache Differential Revision: D3897526 fbshipit-source-id: cadead316996ca7c1dd2b0d60d87945f5452640c
This commit is contained in:
committed by
Facebook Github Bot 7
parent
6071e8ca2c
commit
d7a2d3a957
@@ -55,6 +55,11 @@ class Instance {
|
||||
void callJSCallback(ExecutorToken token, uint64_t callbackId, folly::dynamic&& params);
|
||||
MethodCallResult callSerializableNativeHook(ExecutorToken token, unsigned int moduleId,
|
||||
unsigned int methodId, folly::dynamic&& args);
|
||||
// This method is experimental, and may be modified or removed.
|
||||
template <typename T>
|
||||
Value callFunctionSync(const std::string& module, const std::string& method, T&& args) {
|
||||
return nativeToJsBridge_->callFunctionSync(module, method, std::forward<T>(args));
|
||||
}
|
||||
|
||||
ExecutorToken getMainExecutorToken();
|
||||
void handleMemoryPressureUiHidden();
|
||||
|
||||
Reference in New Issue
Block a user