mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add native module for loading split JS bundles in development
Reviewed By: mdvacca, cpojer Differential Revision: D22001709 fbshipit-source-id: 4e378fd6ae90268e7db9092a71628205b9f7c37d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2e2c881147
commit
fca3a39da5
@@ -33,6 +33,12 @@ public interface JSBundleLoaderDelegate {
|
||||
*/
|
||||
void loadScriptFromFile(String fileName, String sourceURL, boolean loadSynchronously);
|
||||
|
||||
/**
|
||||
* Load a split JS bundle from the filesystem. See {@link
|
||||
* JSBundleLoader#createCachedSplitBundleFromNetworkLoader(String, String)}.
|
||||
*/
|
||||
void loadSplitBundleFromFile(String fileName, String sourceURL);
|
||||
|
||||
/**
|
||||
* This API is used in situations where the JS bundle is being executed not on the device, but on
|
||||
* a host machine. In that case, we must provide two source URLs for the JS bundle: One to be used
|
||||
|
||||
Reference in New Issue
Block a user