Provide sync vs async interface for bundle loading via parameter

Reviewed By: javache

Differential Revision: D5104317

fbshipit-source-id: ffacb57d85c24795a3acc2faba2ff5824cc739b2
This commit is contained in:
Kathy Gray authored and Facebook Github Bot committed 2017-05-24 07:31:36 -07:00
1 parent d59fd9e419
commit f46eaa30cf
15 files changed
+113 -119

No files matched your search

@@ -27,6 +27,9 @@ public interface CatalystInstance
extends MemoryPressureListener, JSInstance {
void runJSBundle();
// Returns the status of running the JS bundle; waits for an answer if runJSBundle is running
boolean hasRunJSBundle();
/**
* Return the source URL of the JS Bundle that was run, or {@code null} if no JS
* bundle has been run yet.