react-native-in-app-debugger 1.0.45 → 1.0.46
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 +6 -2
- package/package.json +1 -1
package/index.jsx
CHANGED
|
@@ -57,7 +57,8 @@ export default ({
|
|
|
57
57
|
version = v,
|
|
58
58
|
maxNumOfApiToStore = 0,
|
|
59
59
|
labels = [],
|
|
60
|
-
interceptResponse
|
|
60
|
+
interceptResponse,
|
|
61
|
+
tabs = [],
|
|
61
62
|
}) => {
|
|
62
63
|
const [blacklists, setB] = useState([]);
|
|
63
64
|
|
|
@@ -116,6 +117,8 @@ export default ({
|
|
|
116
117
|
setIsOpen,
|
|
117
118
|
shouldShowDetails,
|
|
118
119
|
} = useAnimation(badgeHeight);
|
|
120
|
+
|
|
121
|
+
const CustomTabComponent = tabs.find(t => tab === t.title)?.component;
|
|
119
122
|
return (
|
|
120
123
|
<Animated.View
|
|
121
124
|
style={{
|
|
@@ -163,7 +166,7 @@ export default ({
|
|
|
163
166
|
<View style={{ flexDirection: "row", padding: 5 }}>
|
|
164
167
|
<View style={{ flex: 1, flexDirection: "row" }}>
|
|
165
168
|
{!!variables &&
|
|
166
|
-
["api", "variables"].map((t) => {
|
|
169
|
+
["api", "variables", ...tabs.map(t => t.title)].map((t) => {
|
|
167
170
|
const isSelected = t === tab;
|
|
168
171
|
return (
|
|
169
172
|
<TouchableOpacity
|
|
@@ -200,6 +203,7 @@ export default ({
|
|
|
200
203
|
{...restApiInterceptor}
|
|
201
204
|
/>
|
|
202
205
|
)}
|
|
206
|
+
{!!CustomTabComponent && <CustomTabComponent />}
|
|
203
207
|
</SafeAreaView>
|
|
204
208
|
)}
|
|
205
209
|
</Animated.View>
|
package/package.json
CHANGED