mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Connect to RCTInspectorDevServerHelper in bridgeless mode
Summary: Changelog: [Internal] Reviewed By: shergin Differential Revision: D26623985 fbshipit-source-id: 98aff018adc0e9aca517d8faebd20fe98e9b708b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d0d2115bee
commit
c9600a310f
@@ -166,6 +166,16 @@ RCT_EXPORT_MODULE()
|
||||
return self;
|
||||
}
|
||||
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
// In bridgeless mode, `setBridge` is not called, so dev server connection
|
||||
// must be kicked off here.
|
||||
- (void)setBundleURL:(NSURL *)bundleURL
|
||||
{
|
||||
_bundleURL = bundleURL;
|
||||
[RCTInspectorDevServerHelper connectWithBundleURL:_bundleURL];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (void)setBridge:(RCTBridge *)bridge
|
||||
{
|
||||
[super setBridge:bridge];
|
||||
|
||||
Reference in New Issue
Block a user