react-native-in-app-debugger 1.0.62 → 1.0.63
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 +10 -0
- 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 }}
|
|
157
|
+
/>
|
|
148
158
|
{!shouldShowDetails ? (
|
|
149
159
|
<TouchableOpacity
|
|
150
160
|
onPress={() => setIsOpen(true)}
|
package/package.json
CHANGED