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:
Oleksandr Melnykov
2020-06-17 09:10:51 -07:00
committed by Facebook GitHub Bot
parent 2e2c881147
commit fca3a39da5
15 changed files with 272 additions and 46 deletions
@@ -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