File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
packages/react-native-external-display/ios Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 11#import " RNExternalDisplayView.h"
2- #import " UIView+React.h"
3- #import " RCTShadowView.h"
2+ #import < React/ UIView+React.h>
3+ #import < React/ RCTShadowView.h>
44#import < React/RCTLog.h>
55#ifdef RCT_NEW_ARCH_ENABLED
66#import < React/RCTFabricComponentsPlugins.h>
1010#define RCTTouchHandler RCTSurfaceTouchHandler
1111#else
1212#import < React/RCTBridge+Private.h>
13- #import " RCTTouchHandler.h"
13+ #import < React/ RCTTouchHandler.h>
1414#endif
1515
1616@implementation RNExternalDisplayView {
@@ -34,15 +34,16 @@ - (void)insertReactSubview:(UIView *)subview atIndex:(NSInteger)atIndex
3434- (void )removeReactSubview : (UIView *)subview
3535{
3636 [super removeReactSubview: subview];
37+ [_subviews removeObject: subview];
3738}
3839
39- // - (void)didMoveToSuperview
40- // {
41- // [super didMoveToSuperview];
42- // if (!self.superview) {
43- // [self invalidate];
44- // }
45- // }
40+ - (void )didMoveToSuperview
41+ {
42+ [super didMoveToSuperview ];
43+ if (!self.superview ) {
44+ [self invalidate ];
45+ }
46+ }
4647
4748- (void )didUpdateReactSubviews {
4849 if (_fallbackInMainScreen && !_window) {
You can’t perform that action at this time.
0 commit comments