react-native-in-app-debugger 1.0.2 → 1.0.4
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 +2 -1
- package/package.json +1 -1
- package/useApiInterceptor.js +2 -2
package/index.jsx
CHANGED
|
@@ -47,12 +47,13 @@ export default ({ variables, env }) => {
|
|
|
47
47
|
|
|
48
48
|
const errors = apis.filter((a) => a.response?.error).length;
|
|
49
49
|
const numPendingApiCalls = apis.filter((a) => !a.response).length;
|
|
50
|
-
let badgeHeight =
|
|
50
|
+
let badgeHeight = 10;
|
|
51
51
|
if (variables?.GIT_BRANCH) badgeHeight += 10;
|
|
52
52
|
if (variables?.BUILD_DATE_TIME) badgeHeight += 10;
|
|
53
53
|
const hasEnvOrVersion = !!env || !!version;
|
|
54
54
|
if (hasEnvOrVersion) badgeHeight += 10;
|
|
55
55
|
if (DeviceInfo) badgeHeight += 10;
|
|
56
|
+
if (badgeHeight === 10) badgeHeight += 10;
|
|
56
57
|
|
|
57
58
|
const {
|
|
58
59
|
translateX,
|
package/package.json
CHANGED
package/useApiInterceptor.js
CHANGED
|
@@ -96,7 +96,7 @@ export default () => {
|
|
|
96
96
|
}
|
|
97
97
|
const data = parse(_response);
|
|
98
98
|
|
|
99
|
-
if (Platform.OS
|
|
99
|
+
if (Platform.OS !== "android") {
|
|
100
100
|
xhr.addEventListener("load", function () {
|
|
101
101
|
try {
|
|
102
102
|
const reader = new FileReader();
|
|
@@ -118,7 +118,7 @@ export default () => {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if (Platform.OS === "
|
|
121
|
+
if (Platform.OS === "android" || !data.blobId) {
|
|
122
122
|
receiveResponse({
|
|
123
123
|
config: {
|
|
124
124
|
url,
|