react-native-in-app-debugger 1.0.79 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/useAnimation.ts +16 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.",
5
5
  "main": "index.jsx",
6
6
  "scripts": {
package/useAnimation.ts CHANGED
@@ -100,20 +100,22 @@ export default (defaultBadgeHeight) => {
100
100
  }, [defaultBadgeHeight]);
101
101
 
102
102
  useEffect(() => {
103
- setTimeout(() => setShouldShowDetails(isOpen), isOpen ? 200 : 0);
104
- Animated.spring(position, {
105
- toValue: isOpen ? { x: 0, y: 0 } : cachePosition.current,
106
- ...und,
107
- }).start();
108
- // Animated.spring(borderRadius, { toValue: isOpen ? 0 : defaultBorderRadius, ...und }).start();
109
- Animated.spring(badgeHeight, {
110
- toValue: isOpen ? height : defaultBadgeHeight,
111
- ...und,
112
- }).start();
113
- Animated.spring(badgeWidth, {
114
- toValue: isOpen ? width : defaultBadgeWidth,
115
- ...und,
116
- }).start();
103
+ setTimeout(() => setShouldShowDetails(isOpen), isOpen ? 500 : 0);
104
+ Animated.parallel([
105
+ Animated.spring(position, {
106
+ toValue: isOpen ? { x: 0, y: 0 } : cachePosition.current,
107
+ ...und,
108
+ }),
109
+ // Animated.spring(borderRadius, { toValue: isOpen ? 0 : defaultBorderRadius, ...und }),
110
+ Animated.spring(badgeHeight, {
111
+ toValue: isOpen ? height : defaultBadgeHeight,
112
+ ...und,
113
+ }),
114
+ Animated.spring(badgeWidth, {
115
+ toValue: isOpen ? width : defaultBadgeWidth,
116
+ ...und,
117
+ }),
118
+ ]).start();
117
119
  }, [isOpen]);
118
120
 
119
121
  return {