react-native-in-app-debugger 2.0.24 → 2.0.26

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 CHANGED
@@ -239,7 +239,8 @@ export default ({
239
239
  <Pressable
240
240
  onPress={() => setTab(item)}
241
241
  style={{
242
- paddingHorizontal: 8,
242
+ paddingHorizontal: 16,
243
+ paddingVertical: 8,
243
244
  borderBottomWidth: +isSelected,
244
245
  borderColor: "white",
245
246
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "2.0.24",
3
+ "version": "2.0.26",
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": {
package/useAnimation.ts CHANGED
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
2
2
  import {
3
3
  Animated,
4
4
  Keyboard,
5
+ BackHandler,
5
6
  PanResponder,
6
7
  useWindowDimensions,
7
8
  } from "react-native";
@@ -47,6 +48,19 @@ export default (defaultBadgeHeight = 100) => {
47
48
  }, []);
48
49
  }
49
50
 
51
+
52
+ useEffect(()=>{
53
+ const backHandler = BackHandler.addEventListener(
54
+ 'hardwareBackPress',
55
+ () => {
56
+ setIsOpen(false);
57
+ return isOpen;
58
+ },
59
+ );
60
+
61
+ return () => backHandler.remove();
62
+ },[isOpen])
63
+
50
64
  useEffect(() => {
51
65
  const showSubscription = Keyboard.addListener("keyboardDidShow", () => {
52
66
  !isOpen &&