File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -73,26 +73,7 @@ - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompo
7373}
7474
7575- (void )setupChildViewAsMenuTrigger : (UIView *)childView
76- {
77- // Don't manually add the child view - React already added it via mountChildComponentView
78- // Just ensure it has the correct constraints
79- childView.translatesAutoresizingMaskIntoConstraints = NO ;
80-
81- // Remove any existing constraints on the child view to avoid conflicts
82- [childView.constraints enumerateObjectsUsingBlock: ^(NSLayoutConstraint *constraint, NSUInteger idx, BOOL *stop) {
83- if (constraint.firstItem == childView || constraint.secondItem == childView) {
84- [constraint setActive: NO ];
85- }
86- }];
87-
88- // Setup constraints to fill the container
89- [NSLayoutConstraint activateConstraints: @[
90- [childView.topAnchor constraintEqualToAnchor: self .topAnchor],
91- [childView.leadingAnchor constraintEqualToAnchor: self .leadingAnchor],
92- [childView.trailingAnchor constraintEqualToAnchor: self .trailingAnchor],
93- [childView.bottomAnchor constraintEqualToAnchor: self .bottomAnchor]
94- ]];
95-
76+ {
9677 // If the child is a UIButton, attach the menu directly to it
9778 if ([childView isKindOfClass: [UIButton class ]]) {
9879 _menuButton = (UIButton *)childView;
You can’t perform that action at this time.
0 commit comments