Skip to content

Commit ea0cb8f

Browse files
committed
fixup! fix(apple): fix app autodetection in bridgeless mode
1 parent ac17b82 commit ea0cb8f

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

ios/ReactTestApp/Public/ReactTestApp-DevSupport.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
NS_ASSUME_NONNULL_BEGIN
44

5-
extern NSNotificationName const ReactAppDidInitializeNotification;
6-
extern NSNotificationName const ReactAppWillInitializeReactNativeNotification;
7-
extern NSNotificationName const ReactAppDidInitializeReactNativeNotification;
8-
extern NSNotificationName const ReactAppDidRegisterAppsNotification;
9-
extern NSNotificationName const ReactAppRuntimeReady;
10-
extern NSNotificationName const ReactAppSceneDidOpenURLNotification;
5+
OBJC_EXTERN NSNotificationName const ReactAppDidInitializeNotification;
6+
OBJC_EXTERN NSNotificationName const ReactAppWillInitializeReactNativeNotification;
7+
OBJC_EXTERN NSNotificationName const ReactAppDidInitializeReactNativeNotification;
8+
OBJC_EXTERN NSNotificationName const ReactAppDidRegisterAppsNotification;
9+
OBJC_EXTERN NSNotificationName const ReactAppRuntimeReady;
10+
OBJC_EXTERN NSNotificationName const ReactAppSceneDidOpenURLNotification;
1111

12-
extern NSNotificationName const ReactTestAppDidInitializeNotification
12+
OBJC_EXTERN NSNotificationName const ReactTestAppDidInitializeNotification
1313
__deprecated_msg("Use 'ReactAppDidInitializeNotification' instead");
14-
extern NSNotificationName const ReactTestAppWillInitializeReactNativeNotification
14+
OBJC_EXTERN NSNotificationName const ReactTestAppWillInitializeReactNativeNotification
1515
__deprecated_msg("Use 'ReactAppWillInitializeReactNativeNotification' instead");
16-
extern NSNotificationName const ReactTestAppDidInitializeReactNativeNotification
16+
OBJC_EXTERN NSNotificationName const ReactTestAppDidInitializeReactNativeNotification
1717
__deprecated_msg("Use 'ReactAppDidInitializeReactNativeNotification' instead");
18-
extern NSNotificationName const ReactTestAppDidRegisterAppsNotification
18+
OBJC_EXTERN NSNotificationName const ReactTestAppDidRegisterAppsNotification
1919
__deprecated_msg("Use 'ReactAppDidRegisterAppsNotification' instead");
20-
extern NSNotificationName const ReactTestAppSceneDidOpenURLNotification
20+
OBJC_EXTERN NSNotificationName const ReactTestAppSceneDidOpenURLNotification
2121
__deprecated_msg("Use 'ReactAppSceneDidOpenURLNotification' instead");
2222

23-
extern NSNotificationName const ReactInstanceDidLoadBundle;
23+
OBJC_EXTERN NSNotificationName const ReactInstanceDidLoadBundle;
2424

2525
OBJC_EXTERN void RTAPostDidRegisterAppsNotification(NSValue *runtime);
2626

ios/ReactTestApp/ReactTestApp-DevSupport.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
NSNotificationName const ReactAppSceneDidOpenURLNotification =
1212
@"ReactAppSceneDidOpenURLNotification";
1313

14-
NSNotificationName const ReactTestAppDidInitializeNotification =
15-
@"ReactAppDidInitializeNotification";
14+
NSNotificationName const ReactTestAppDidInitializeNotification = ReactAppDidInitializeNotification;
1615
NSNotificationName const ReactTestAppWillInitializeReactNativeNotification =
17-
@"ReactAppWillInitializeReactNativeNotification";
16+
ReactAppWillInitializeReactNativeNotification;
1817
NSNotificationName const ReactTestAppDidInitializeReactNativeNotification =
19-
@"ReactAppDidInitializeReactNativeNotification";
18+
ReactAppDidInitializeReactNativeNotification;
2019
NSNotificationName const ReactTestAppDidRegisterAppsNotification =
21-
@"ReactAppDidRegisterAppsNotification";
20+
ReactAppDidRegisterAppsNotification;
2221
NSNotificationName const ReactTestAppSceneDidOpenURLNotification =
23-
@"ReactAppSceneDidOpenURLNotification";
22+
ReactAppSceneDidOpenURLNotification;
2423

2524
// https://github.com/facebook/react-native/blob/v0.73.4/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm#L448
2625
NSNotificationName const ReactInstanceDidLoadBundle = @"RCTInstanceDidLoadBundle";

0 commit comments

Comments
 (0)