react-native-in-app-debugger 1.0.84 → 1.0.86
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/Api/Row.jsx +2 -2
- package/Api/index.jsx +4 -0
- package/README.md +0 -1
- package/index.jsx +0 -2
- package/package.json +1 -1
- package/useApiInterceptor.js +1 -1
package/Api/Row.jsx
CHANGED
|
@@ -64,11 +64,11 @@ export default ({ item, filter, wrap, setWrap }) => {
|
|
|
64
64
|
}}
|
|
65
65
|
>
|
|
66
66
|
<Text style={{ color: wrap ? undefined : "white", fontSize: 10 }}>
|
|
67
|
-
Wrap
|
|
67
|
+
Wrap
|
|
68
68
|
</Text>
|
|
69
69
|
</TouchableOpacity>
|
|
70
70
|
</View>
|
|
71
|
-
<Comp horizontal
|
|
71
|
+
<Comp horizontal>
|
|
72
72
|
{tab === tabs[0].value && hasResponse && (
|
|
73
73
|
<Text style={{ color: "white" }}>
|
|
74
74
|
<Highlight
|
package/Api/index.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Alert,
|
|
7
7
|
StyleSheet,
|
|
8
8
|
TouchableOpacity,
|
|
9
|
+
ActivityIndicator,
|
|
9
10
|
} from "react-native";
|
|
10
11
|
import Text from "../Text";
|
|
11
12
|
import Highlight from "../Highlight";
|
|
@@ -131,6 +132,9 @@ export default (props) => {
|
|
|
131
132
|
</TouchableOpacity>
|
|
132
133
|
</>
|
|
133
134
|
)}
|
|
135
|
+
{apis.some((a) => !a.response) && (
|
|
136
|
+
<ActivityIndicator size="small" color="white" />
|
|
137
|
+
)}
|
|
134
138
|
<TextInput
|
|
135
139
|
value={filter}
|
|
136
140
|
placeholder="Filter..."
|
package/README.md
CHANGED
|
@@ -75,7 +75,6 @@ All FlatList props should work plus props mentioned below
|
|
|
75
75
|
| `labels` | Array of strings | Array of strings you want to show of the floating debugger pill. For each strings in the array will eb displayed as a single line in the floating debugger pill | | Optional |
|
|
76
76
|
| `maxNumOfApiToStore` | integer | Number of APIs to be kept. Too much API might make the whole app lag, therefore need to trade off. Suggested value is 50 | | Optional. If not set, all APIs will be kept forever |
|
|
77
77
|
`version` | string | Any string passed here will be shown in debugger's floating panel. | | Optional. If not supplied, version number will taken automatically using React Native Device Info library. But if Device Info library is not installed, then no version will be shown if this prop is not passed.
|
|
78
|
-
`interceptResponse` | function | Callback function when receive response from any API. | | Optional
|
|
79
78
|
|
|
80
79
|
|
|
81
80
|
### Integration with Third Party Library
|
package/index.jsx
CHANGED
|
@@ -63,7 +63,6 @@ export default ({
|
|
|
63
63
|
version = v,
|
|
64
64
|
maxNumOfApiToStore = 0,
|
|
65
65
|
labels = [],
|
|
66
|
-
interceptResponse,
|
|
67
66
|
tabs = [],
|
|
68
67
|
}) => {
|
|
69
68
|
|
|
@@ -102,7 +101,6 @@ export default ({
|
|
|
102
101
|
const { apis, ...restApiInterceptor } = useApiInterceptor(
|
|
103
102
|
maxNumOfApiToStore,
|
|
104
103
|
blacklists,
|
|
105
|
-
interceptResponse,
|
|
106
104
|
blacklistRef
|
|
107
105
|
);
|
|
108
106
|
|
package/package.json
CHANGED
package/useApiInterceptor.js
CHANGED
|
@@ -18,7 +18,7 @@ const parse = (data) => {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
export default (maxNumOfApiToStore, blacklists,
|
|
21
|
+
export default (maxNumOfApiToStore, blacklists, blacklistRef) => {
|
|
22
22
|
const [apis, setApis] = useState([]);
|
|
23
23
|
const [bookmarks, setBookmarks] = useState({});
|
|
24
24
|
|