Skip to content

Commit fe9cba7

Browse files
afoxmanfacebook-github-bot
authored andcommitted
Expose [RCTBundleURLProvider isPackagerRunning] publicly (#27012)
Summary: The private API isPackagerRunning is useful. Rather than duplicating it, I am exposing it here so that I can make use of it in future PRs, and so others can do the same. ## Changelog [iOS] [Changed] - Expose the isPackagerRunning methods on RCTBundleURLProvider Pull Request resolved: #27012 Test Plan: This change doesn't impact any runtime code, though it does impact build. I used a vanilla test app (react-native init) and built it using xcode as well as react-native run-ios. Differential Revision: D18174316 Pulled By: cpojer fbshipit-source-id: 523d134882303f68a1f69521e31f29d7dbfb666c
1 parent af8ea06 commit fe9cba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

React/Base/RCTBundleURLProvider.h

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ extern const NSUInteger kRCTBundleURLProviderDefaultPort;
3131
*/
3232
- (void)resetToDefaults;
3333

34+
#if RCT_DEV
35+
- (BOOL)isPackagerRunning:(NSString *)host;
36+
#endif
37+
3438
/**
3539
* Returns the jsBundleURL for a given bundle entrypoint and
3640
* the fallback offline JS bundle if the packager is not running.

0 commit comments

Comments
 (0)