react-native-in-app-debugger 1.0.11 → 1.0.14

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 (3) hide show
  1. package/README.md +3 -2
  2. package/index.jsx +7 -10
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # react-native-in-app-debugger
2
2
 
3
- This library's main usage is be used by Non-Technical tester during UAT or SIT or any testing phase.
3
+ This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.
4
+
5
+ ![ezgif-3-1cb92b8367](https://github.com/fattahmuhyiddeen/react-native-in-app-debugger/assets/24792201/4ffe083a-4807-4a2e-a624-6a81f506439b)
4
6
 
5
- ![Simulator Screen Recording - iPhone SE (3rd generation) - 2024-02-13 at 19 07 03](https://github.com/fattahmuhyiddeen/react-native-in-app-debugger/assets/24792201/87d0ef78-f692-4cbd-88ed-a6ba67d5931e)
6
7
 
7
8
 
8
9
  Usage :
package/index.jsx CHANGED
@@ -1,6 +1,3 @@
1
- /* eslint-disable react-hooks/rules-of-hooks */
2
- // hooks are prevented to be called conditionally, but in this case, bundle id / package name will never changed in run time, so it is safe to call the hooks under that condition
3
-
4
1
  import React, { useState } from "react";
5
2
  import {
6
3
  Animated,
@@ -61,13 +58,13 @@ export default ({
61
58
  const errors = apis.filter((a) => a.response?.error).length;
62
59
  const numPendingApiCalls = apis.filter((a) => !a.response).length;
63
60
  let badgeHeight = 10;
64
- if (variables?.GIT_BRANCH) badgeHeight += 10;
65
- if (variables?.BUILD_DATE_TIME) badgeHeight += 10;
61
+ if (variables?.GIT_BRANCH) badgeHeight += 7;
62
+ if (variables?.BUILD_DATE_TIME) badgeHeight += 7;
66
63
  const hasEnvOrVersion = !!env || !!version;
67
- if (hasEnvOrVersion) badgeHeight += 10;
68
- if (DeviceInfo) badgeHeight += 10;
69
- if (badgeHeight === 10) badgeHeight += 10;
70
- 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));
71
68
 
72
69
  const {
73
70
  translateX,
@@ -178,7 +175,7 @@ const styles = StyleSheet.create({
178
175
  width: "100%",
179
176
  height: "100%",
180
177
  },
181
- label: { color: "white", textAlign: "center", fontSize: 6 },
178
+ label: { color: "white", textAlign: "center", fontSize: 5 },
182
179
  badgeContainer: {
183
180
  gap: 3,
184
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.11",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "index.jsx",
6
6
  "scripts": {