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 d861c92 commit b425a04Copy full SHA for b425a04
packages/core/src/js/feedback/FeedbackWidgetManager.tsx
@@ -164,10 +164,6 @@ class FeedbackWidgetProvider extends React.Component<FeedbackWidgetProviderProps
164
}
165
166
private _setVisibilityFunction = (visible: boolean): void => {
167
- const updateState = () => {
168
- this.setState({ isVisible: visible });
169
- };
170
-
171
Animated.parallel([
172
Animated.timing(this.state.panY, {
173
toValue: Dimensions.get('screen').height,
@@ -180,7 +176,9 @@ class FeedbackWidgetProvider extends React.Component<FeedbackWidgetProviderProps
180
176
useNativeDriver: true,
181
177
})
182
178
]).start(() => {
183
- updateState();
179
+ // Change of the state unmount the component
+ // which would cancel the animation
+ this.setState({ isVisible: visible });
184
});
185
};
186
0 commit comments