react-native-in-app-debugger 2.0.21 → 2.0.22

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/index.jsx CHANGED
@@ -8,6 +8,7 @@ import {
8
8
  Pressable,
9
9
  ActivityIndicator,
10
10
  } from "react-native";
11
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
12
  import Text from "../Text";
12
13
  import Highlight from "../Highlight";
13
14
  import Bookmark from "../Bookmark";
@@ -45,6 +46,7 @@ export default (props) => {
45
46
  const [wrap, setWrap] = useState(true);
46
47
  const [expands, setExpands] = useState({});
47
48
  const apis = props.apis.filter((a) => !errorOnly || isError(a));
49
+ const insets = useSafeAreaInsets();
48
50
 
49
51
  if (LocalStorage) {
50
52
  useEffect(() => {
@@ -155,6 +157,7 @@ export default (props) => {
155
157
  keyExtractor={(i) => i.id}
156
158
  stickySectionHeadersEnabled
157
159
  showsVerticalScrollIndicator
160
+ contentContainerStyle={{ paddingBottom: insets.bottom}}
158
161
  sections={apis
159
162
  .filter(
160
163
  (a) =>
package/Deeplink.tsx CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  View,
7
7
  FlatList,
8
8
  } from "react-native";
9
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
9
10
  import X from "./X";
10
11
  import Text from "./Text";
11
12
 
@@ -20,6 +21,7 @@ try {
20
21
  export default ({ deeplinkPrefix = 'mym1-sunshine://', onClose }) => {
21
22
  const [text, setText] = React.useState("");
22
23
  const [history, setHistory] = React.useState([]);
24
+ const insets = useSafeAreaInsets();
23
25
 
24
26
  const go = (t) => {
25
27
  const newHistory = [t, ...history.filter((h) => h !== t)];
@@ -77,6 +79,7 @@ export default ({ deeplinkPrefix = 'mym1-sunshine://', onClose }) => {
77
79
  </View>
78
80
  <FlatList
79
81
  data={history}
82
+ contentContainerStyle={{ paddingBottom: insets.bottom }}
80
83
  renderItem={({ item }) => (
81
84
  <View
82
85
  style={{
package/Libs.jsx CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  TextInput,
6
6
  View,
7
7
  } from "react-native";
8
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
8
9
  import Text from "./Text";
9
10
  import Highlight from "./Highlight";
10
11
  import packageJson from "../../package.json";
@@ -17,6 +18,7 @@ const libs = Object.entries(packageJson.dependencies).reduce(
17
18
 
18
19
  export default (p) => {
19
20
  const [filter, setFilter] = useState("");
21
+ const insets = useSafeAreaInsets();
20
22
 
21
23
  return (
22
24
  <>
@@ -29,7 +31,7 @@ export default (p) => {
29
31
  clearButtonMode="always"
30
32
  />
31
33
  <FlatList
32
- contentContainerStyle={{ padding: 5, paddingBottom: 20 }}
34
+ contentContainerStyle={{ padding: 5, paddingBottom: insets.bottom }}
33
35
  data={libs.filter(
34
36
  (l) =>
35
37
  !filter ||
package/Mock/index.jsx CHANGED
@@ -1,11 +1,13 @@
1
1
  import React, { useState } from 'react';
2
2
  import { FlatList, StyleSheet, TextInput } from 'react-native';
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
3
4
  import MockGroup from './MockGroup';
4
5
 
5
6
  const format = (m) => '(' + m.request.method + ') ' + m.request.url;
6
7
 
7
8
  export default (p) => {
8
9
  const [filter, setFilter] = useState('');
10
+ const insets = useSafeAreaInsets();
9
11
 
10
12
  const data = [];
11
13
  p.mocks.forEach((m) => {
@@ -25,7 +27,7 @@ export default (p) => {
25
27
  clearButtonMode='always'
26
28
  />
27
29
  <FlatList
28
- contentContainerStyle={{ padding: 5, paddingBottom: 20 }}
30
+ contentContainerStyle={{ padding: 5, paddingBottom: insets.bottom }}
29
31
  data={data.filter((l) => !filter || l.title.toLowerCase().includes(filter))}
30
32
  showsVerticalScrollIndicator
31
33
  keyExtractor={(i) => i.title}
package/Variables.jsx CHANGED
@@ -1,10 +1,12 @@
1
1
  import React, { useState } from "react";
2
2
  import { FlatList, StyleSheet, TextInput } from "react-native";
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
3
4
  import Text from "./Text";
4
5
  import Highlight from "./Highlight";
5
6
 
6
7
  export default ({ variables }) => {
7
8
  const [filter, setFilter] = useState("");
9
+ const insets = useSafeAreaInsets();
8
10
 
9
11
  return (
10
12
  <>
@@ -17,7 +19,7 @@ export default ({ variables }) => {
17
19
  clearButtonMode="always"
18
20
  />
19
21
  <FlatList
20
- contentContainerStyle={{ padding: 5, paddingBottom: 20 }}
22
+ contentContainerStyle={{ padding: 5, paddingBottom: insets.bottom }}
21
23
  data={Object.keys(variables).filter(
22
24
  (k) =>
23
25
  !filter ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.",
5
5
  "main": "index.jsx",
6
6
  "scripts": {