File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/react-native/React/Fabric Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1818#import < React/RCTSurfacePresenter.h>
1919#import < React/RCTSurfacePresenterStub.h>
2020
21+ #if __has_include(<React/RCTDevMenu.h>) && RCT_DEV
22+ #import < React/RCTDevMenu.h>
23+ #endif
24+
2125#import < ReactCommon/RuntimeExecutor.h>
2226#import < react/utils/ContextContainer.h>
2327#import < react/utils/ManagedObjectWrapper.h>
@@ -39,6 +43,15 @@ - (void)invokeAsync:(std::function<void()> &&)func;
3943
4044 contextContainer->insert (" Bridge" , wrapManagedObjectWeakly (bridge));
4145 contextContainer->insert (" RCTImageLoader" , wrapManagedObject ((id <RCTImageLoaderWithAttributionProtocol>)imageLoader));
46+
47+ #if __has_include(<React/RCTDevMenu.h>) && RCT_DEV
48+ // Add DevMenu to contextContainer for Fabric views to access
49+ RCTDevMenu *devMenu = [bridge devMenu ];
50+ if (devMenu) {
51+ contextContainer->insert (" RCTDevMenu" , wrapManagedObject (devMenu));
52+ }
53+ #endif
54+
4255 return contextContainer;
4356}
4457
You can’t perform that action at this time.
0 commit comments