react-native-in-app-debugger 1.0.46 → 1.0.47
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.
- package/package.json +1 -1
- package/useAnimation.ts +3 -3
package/package.json
CHANGED
package/useAnimation.ts
CHANGED
|
@@ -9,7 +9,7 @@ const touchThreshold = 10;
|
|
|
9
9
|
export default (defaultBadgeHeight) => {
|
|
10
10
|
const cachePosition = useRef({ x: 0, y: 50 });
|
|
11
11
|
const position = useRef<any>(new Animated.ValueXY(cachePosition.current)).current;
|
|
12
|
-
const borderRadius = useRef(new Animated.Value(defaultBorderRadius)).current;
|
|
12
|
+
// const borderRadius = useRef(new Animated.Value(defaultBorderRadius)).current;
|
|
13
13
|
const badgeHeight = useRef(new Animated.Value(defaultBadgeHeight)).current;
|
|
14
14
|
const badgeWidth = useRef(new Animated.Value(defaultBadgeWidth)).current;
|
|
15
15
|
const { width, height } = useWindowDimensions();
|
|
@@ -59,7 +59,7 @@ export default (defaultBadgeHeight) => {
|
|
|
59
59
|
useEffect(() => {
|
|
60
60
|
setTimeout(() => setShouldShowDetails(isOpen), isOpen ? 200 : 0);
|
|
61
61
|
Animated.spring(position, { toValue: isOpen ? { x: 0, y: 0 } : cachePosition.current, ...und }).start();
|
|
62
|
-
Animated.spring(borderRadius, { toValue: isOpen ? 0 : defaultBorderRadius, ...und }).start();
|
|
62
|
+
// Animated.spring(borderRadius, { toValue: isOpen ? 0 : defaultBorderRadius, ...und }).start();
|
|
63
63
|
Animated.spring(badgeHeight, { toValue: isOpen ? height : defaultBadgeHeight, ...und }).start();
|
|
64
64
|
Animated.spring(badgeWidth, { toValue: isOpen ? width : defaultBadgeWidth, ...und }).start();
|
|
65
65
|
}, [isOpen]);
|
|
@@ -72,7 +72,7 @@ export default (defaultBadgeHeight) => {
|
|
|
72
72
|
translateY: position.y,
|
|
73
73
|
isOpen,
|
|
74
74
|
setIsOpen,
|
|
75
|
-
borderRadius,
|
|
75
|
+
borderRadius: isOpen ? 0 : defaultBorderRadius,
|
|
76
76
|
shouldShowDetails,
|
|
77
77
|
};
|
|
78
78
|
};
|