react-native-in-app-debugger 1.0.32 → 1.0.34
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/Variables.jsx +1 -0
- package/index.jsx +20 -23
- package/package.json +1 -1
package/Variables.jsx
CHANGED
|
@@ -13,6 +13,7 @@ export default ({ variables }) => {
|
|
|
13
13
|
placeholderTextColor='grey'
|
|
14
14
|
style={{ paddingHorizontal: 5, color: 'white' }}
|
|
15
15
|
onChangeText={(t) => setFilter(t.toLowerCase())}
|
|
16
|
+
clearButtonMode="always"
|
|
16
17
|
/>
|
|
17
18
|
<FlatList
|
|
18
19
|
contentContainerStyle={{ padding: 5, paddingBottom: 20 }}
|
package/index.jsx
CHANGED
|
@@ -55,14 +55,18 @@ export default ({
|
|
|
55
55
|
|
|
56
56
|
const errors = apis.filter((a) => a.response?.error).length;
|
|
57
57
|
const numPendingApiCalls = apis.filter((a) => !a.response).length;
|
|
58
|
-
let badgeHeight =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
let badgeHeight = 13;
|
|
59
|
+
|
|
60
|
+
const displayLabels = [
|
|
61
|
+
(!!env || !!version) && (env || "") + (env ? " " : "") + version,
|
|
62
|
+
modelOs,
|
|
63
|
+
~~dimension.width + " x " + ~~dimension.height,
|
|
64
|
+
variables?.GIT_BRANCH,
|
|
65
|
+
variables?.BUILD_DATE_TIME,
|
|
66
|
+
...labels,
|
|
67
|
+
].filter(Boolean);
|
|
68
|
+
|
|
69
|
+
displayLabels.forEach(() => (badgeHeight += 7));
|
|
66
70
|
|
|
67
71
|
const {
|
|
68
72
|
translateX,
|
|
@@ -107,26 +111,19 @@ export default ({
|
|
|
107
111
|
</View>
|
|
108
112
|
)}
|
|
109
113
|
</View>
|
|
110
|
-
{(
|
|
111
|
-
<Label>{(env || "") + (env ? " " : "") + version}</Label>
|
|
112
|
-
)}
|
|
113
|
-
{!!modelOs && <Label>{modelOs}</Label>}
|
|
114
|
-
<Label>{~~dimension.width + " x " + ~~dimension.height}</Label>
|
|
115
|
-
{variables?.GIT_BRANCH && <Label>{variables.GIT_BRANCH}</Label>}
|
|
116
|
-
{variables?.BUILD_DATE_TIME && (
|
|
117
|
-
<Label>{variables.BUILD_DATE_TIME}</Label>
|
|
118
|
-
)}
|
|
119
|
-
{labels.map((l) => (
|
|
114
|
+
{displayLabels.map((l) => (
|
|
120
115
|
<Label key={l}>{l}</Label>
|
|
121
116
|
))}
|
|
122
117
|
</TouchableOpacity>
|
|
123
118
|
) : (
|
|
124
119
|
<SafeAreaView style={{ flex: 1 }}>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
<View
|
|
121
|
+
style={{ backgroundColor: "black", flexDirection: "row", gap: 7 }}
|
|
122
|
+
>
|
|
123
|
+
{displayLabels.map((l) => (
|
|
124
|
+
<Label key={l}>{l}</Label>
|
|
125
|
+
))}
|
|
126
|
+
</View>
|
|
130
127
|
<View style={{ flexDirection: "row", padding: 5 }}>
|
|
131
128
|
<View style={{ flex: 1, flexDirection: "row" }}>
|
|
132
129
|
{!!variables &&
|
package/package.json
CHANGED