File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler/apple Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,12 @@ - (void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetric
112112 [_buttonView updateLayoutMetrics: buttonMetrics oldLayoutMetrics: oldbuttonMetrics];
113113}
114114
115+ - (void )traitCollectionDidChange : (UITraitCollection *)previousTraitCollection
116+ {
117+ [super traitCollectionDidChange: previousTraitCollection];
118+ [_buttonView applyStartAnimationState ];
119+ }
120+
115121- (void )finalizeUpdates : (RNComponentViewUpdateMask)updateMask
116122{
117123 [super finalizeUpdates: updateMask];
@@ -131,6 +137,8 @@ - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask
131137 right: borderMetrics.borderWidths.right
132138 bottom: borderMetrics.borderWidths.bottom
133139 left: borderMetrics.borderWidths.left];
140+
141+ [_buttonView applyStartAnimationState ];
134142}
135143
136144#pragma mark - RCTComponentViewProtocol
You can’t perform that action at this time.
0 commit comments