Add bundleSourceURLForBridge in RCTBridgeDelegate

Differential Revision: D6190622

fbshipit-source-id: c45a327be0b0ded6ce10d14b481c0583acca6cca
This commit is contained in:
Yujie Liu 2017-11-01 08:49:29 -07:00 committed by Facebook Github Bot
parent b5651d945c
commit dec81781cd

View File

@ -40,6 +40,14 @@
*/
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge;
/**
* The location of bundle path, this should be a `file://` url
* pointing to a path inside the bundle resources, e.g. `file://..//main.jsbundle`.
* When running from the packager this should be an absolute URL,
* e.g. `http://localhost:8081/index.ios.bundle`.
*/
- (NSURL *)bundledSourceURLForBridge:(RCTBridge *)bridge;
/**
* Configure whether the JSCExecutor created should use the system JSC API or
* alternative hooks provided. When returning YES from this method, you must have