mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-26 10:45:32 +08:00
add API to CatalystInstanceImpl for executing optimized bundle
Reviewed By: tadeuzagallo Differential Revision: D3545345 fbshipit-source-id: 538fec77b816c3fd767e8c2eda81c78971996b17
This commit is contained in:
committed by
Facebook Github Bot 2
parent
a665914d18
commit
1331e20db5
@@ -75,6 +75,16 @@ void Instance::loadScriptFromFile(const std::string& filename,
|
||||
loadScriptFromString(std::move(buf), sourceURL);
|
||||
}
|
||||
|
||||
void Instance::loadScriptFromOptimizedBundle(std::string bundlePath,
|
||||
std::string sourceURL,
|
||||
int flags) {
|
||||
SystraceSection s("reactbridge_xplat_loadScriptFromOptimizedBundle",
|
||||
"bundlePath", bundlePath);
|
||||
nativeToJsBridge_->loadOptimizedApplicationScript(std::move(bundlePath),
|
||||
std::move(sourceURL),
|
||||
flags);
|
||||
}
|
||||
|
||||
void Instance::loadUnbundle(std::unique_ptr<JSModulesUnbundle> unbundle,
|
||||
std::unique_ptr<const JSBigString> startupScript,
|
||||
std::string startupScriptSourceURL) {
|
||||
|
||||
Reference in New Issue
Block a user