We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075f8e4 commit 886be0aCopy full SHA for 886be0a
1 file changed
packages/react-native-gesture-handler/apple/RNGestureHandlerButtonComponentView.mm
@@ -72,9 +72,12 @@ - (void)mountChildComponentView:(RNGHUIView<RCTComponentViewProtocol> *)childCom
72
[_buttonView mountChildComponentView:childComponentView index:index];
73
}
74
75
-- (void)unmountChildComponentView:(RNGHUIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
+- (void)unmountChildComponentView:(RNGHUIView<RCTComponentViewProtocol> *)childComponentView
76
+ index:(NSInteger)__unused index
77
{
- [childComponentView removeFromSuperview];
78
+ if (childComponentView.superview == _buttonView) {
79
+ [childComponentView removeFromSuperview];
80
+ }
81
82
83
- (LayoutMetrics)buildWrapperMetrics:(const LayoutMetrics &)metrics
0 commit comments