mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-09 04:08:11 +08:00
Register split segment paths with RAMBundleRegistry
Differential Revision: D6284466 fbshipit-source-id: c80cf929af38f92f06cca5b366c58785ae992d83
This commit is contained in:
committed by
Facebook Github Bot
parent
820cfa1f3b
commit
cff0d8e0e5
@@ -171,6 +171,12 @@ void NativeToJsBridge::invokeCallback(double callbackId, folly::dynamic&& argume
|
||||
});
|
||||
}
|
||||
|
||||
void NativeToJsBridge::registerBundle(uint32_t bundleId, const std::string& bundlePath) {
|
||||
runOnExecutorQueue([bundleId, bundlePath] (JSExecutor* executor) {
|
||||
executor->registerBundle(bundleId, bundlePath);
|
||||
});
|
||||
}
|
||||
|
||||
void NativeToJsBridge::setGlobalVariable(std::string propName,
|
||||
std::unique_ptr<const JSBigString> jsonValue) {
|
||||
runOnExecutorQueue([propName=std::move(propName), jsonValue=folly::makeMoveWrapper(std::move(jsonValue))]
|
||||
|
||||
Reference in New Issue
Block a user