react-native-in-app-debugger 1.0.12 → 1.0.15

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/index.jsx CHANGED
@@ -58,13 +58,13 @@ export default ({
58
58
  const errors = apis.filter((a) => a.response?.error).length;
59
59
  const numPendingApiCalls = apis.filter((a) => !a.response).length;
60
60
  let badgeHeight = 10;
61
- if (variables?.GIT_BRANCH) badgeHeight += 10;
62
- if (variables?.BUILD_DATE_TIME) badgeHeight += 10;
61
+ if (variables?.GIT_BRANCH) badgeHeight += 7;
62
+ if (variables?.BUILD_DATE_TIME) badgeHeight += 7;
63
63
  const hasEnvOrVersion = !!env || !!version;
64
- if (hasEnvOrVersion) badgeHeight += 10;
65
- if (DeviceInfo) badgeHeight += 10;
66
- if (badgeHeight === 10) badgeHeight += 10;
67
- labels.forEach(() => (badgeHeight += 10));
64
+ if (hasEnvOrVersion) badgeHeight += 7;
65
+ if (DeviceInfo) badgeHeight += 7;
66
+ if (badgeHeight === 10) badgeHeight += 7;
67
+ labels.forEach(() => (badgeHeight += 7));
68
68
 
69
69
  const {
70
70
  translateX,
@@ -175,7 +175,7 @@ const styles = StyleSheet.create({
175
175
  width: "100%",
176
176
  height: "100%",
177
177
  },
178
- label: { color: "white", textAlign: "center", fontSize: 6 },
178
+ label: { color: "white", textAlign: "center", fontSize: 5 },
179
179
  badgeContainer: {
180
180
  gap: 3,
181
181
  flexDirection: "row",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.12",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "main": "index.jsx",
6
6
  "scripts": {
package/useAnimation.ts CHANGED
@@ -35,6 +35,10 @@ export default (defaultBadgeHeight) => {
35
35
  }),
36
36
  ).current;
37
37
 
38
+ useEffect(() => {
39
+ Animated.spring(badgeHeight, { toValue: isOpen ? height : defaultBadgeHeight, ...und }).start();
40
+ },[defaultBadgeHeight])
41
+
38
42
  useEffect(() => {
39
43
  Animated.spring(position, { toValue: isOpen ? { x: 0, y: 0 } : cachePosition.current, ...und }).start();
40
44
  Animated.spring(borderRadius, { toValue: isOpen ? 0 : defaultBorderRadius, ...und }).start();