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.
- package/README.md +3 -2
- package/index.jsx +7 -10
- 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
|
|
3
|
+
This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.
|
|
4
|
+
|
|
5
|
+

|
|
4
6
|
|
|
5
|
-

|
|
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 +=
|
|
65
|
-
if (variables?.BUILD_DATE_TIME) badgeHeight +=
|
|
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 +=
|
|
68
|
-
if (DeviceInfo) badgeHeight +=
|
|
69
|
-
if (badgeHeight === 10) badgeHeight +=
|
|
70
|
-
labels.forEach(() => (badgeHeight +=
|
|
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:
|
|
178
|
+
label: { color: "white", textAlign: "center", fontSize: 5 },
|
|
182
179
|
badgeContainer: {
|
|
183
180
|
gap: 3,
|
|
184
181
|
flexDirection: "row",
|