react-native-in-app-debugger 1.0.62 → 1.0.64

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.
Files changed (2) hide show
  1. package/index.jsx +10 -0
  2. package/package.json +1 -1
package/index.jsx CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  } from "react-native";
10
10
  import Text from "./Text";
11
11
  import X from "./X";
12
+ const testId = "react-native-in-app-debugger-close-button";
12
13
 
13
14
  let DeviceInfo;
14
15
  try {
@@ -131,6 +132,8 @@ export default ({
131
132
  } = useAnimation(badgeHeight);
132
133
 
133
134
  const CustomTabComponent = tabs.find((t) => tab === t.title)?.component;
135
+ const [disapear, setDisapear] = useState();
136
+ if (disapear) return null;
134
137
  return (
135
138
  <Animated.View
136
139
  style={{
@@ -145,6 +148,13 @@ export default ({
145
148
  }}
146
149
  {...(isOpen ? {} : panResponder.panHandlers)}
147
150
  >
151
+ <Text
152
+ accessibilityLabel={testId}
153
+ testId={testId}
154
+ accessible
155
+ onPress={() => setDisapear(true)}
156
+ style={{ height: 1, width: 1 }}
157
+ />
148
158
  {!shouldShowDetails ? (
149
159
  <TouchableOpacity
150
160
  onPress={() => setIsOpen(true)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
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": {