react-native-in-app-debugger 1.0.26 → 1.0.28

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.jsx CHANGED
@@ -130,7 +130,7 @@ export default (props) => {
130
130
  textDecorationLine: errorOnly ? "line-through" : undefined,
131
131
  }}
132
132
  >
133
- {apis.filter(isError).length} Error(s) Only
133
+ {apis.filter(isError).length} error{apis.filter(isError).length > 1 ? 's' : ''}
134
134
  </Text>
135
135
  </TouchableOpacity>
136
136
  )}
@@ -166,6 +166,7 @@ export default (props) => {
166
166
  contentContainerStyle={{ padding: 5 }}
167
167
  keyExtractor={(i) => i.id}
168
168
  stickySectionHeadersEnabled
169
+ showsVerticalScrollIndicator
169
170
  sections={apis
170
171
  .filter((a) =>
171
172
  !filter || filterUrlOnly
package/README.md CHANGED
@@ -56,6 +56,14 @@ export default () => (
56
56
  Call `InAppDebugger` component on top most component, then a floating debugger will appear.
57
57
 
58
58
 
59
+ ### Installation
60
+
61
+ You can declare this in your `package.json` without the need to specify version
62
+ ```
63
+ "react-native-in-app-debugger": "latest",
64
+ ```
65
+ because we are committed to ensure that no breaking changes for every released version and all releases will be backward compatible. Therefore, you will enjoy latest version hassle free.
66
+
59
67
  ### Properties
60
68
 
61
69
  All FlatList props should work plus props mentioned below
package/Variables.jsx CHANGED
@@ -18,6 +18,7 @@ export default ({ variables }) => {
18
18
  data={Object.keys(variables).filter(
19
19
  (k) => !filter || variables[k].toLowerCase().includes(filter) || k.toLowerCase().includes(filter),
20
20
  )}
21
+ showsVerticalScrollIndicator
21
22
  keyExtractor={(i) => i}
22
23
  renderItem={({ item }) => (
23
24
  <Text selectable style={{ color: 'white', marginVertical: 10 }}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "",
5
5
  "main": "index.jsx",
6
6
  "scripts": {
package/useAnimation.ts CHANGED
@@ -13,22 +13,22 @@ export default (defaultBadgeHeight) => {
13
13
  const badgeHeight = useRef(new Animated.Value(defaultBadgeHeight)).current;
14
14
  const badgeWidth = useRef(new Animated.Value(defaultBadgeWidth)).current;
15
15
  const { width, height } = useWindowDimensions();
16
+ const [isOpen, setIsOpen] = useState(false);
16
17
 
17
18
  useEffect(() => {
18
19
  const showSubscription = Keyboard.addListener('keyboardDidShow', () => {
19
- Animated.spring(position, { ...und, toValue: { x: cachePosition.current.x, y: 0 } }).start();
20
+ !isOpen && Animated.spring(position, { ...und, toValue: { x: cachePosition.current.x, y: 0 } }).start();
20
21
  });
21
22
  const hideSubscription = Keyboard.addListener('keyboardDidHide', () => {
22
- Animated.spring(position, { ...und, toValue: cachePosition.current }).start();
23
+ !isOpen && Animated.spring(position, { ...und, toValue: cachePosition.current }).start();
23
24
  });
24
25
 
25
26
  return () => {
26
27
  showSubscription.remove();
27
28
  hideSubscription.remove();
28
29
  };
29
- }, []);
30
+ }, [isOpen]);
30
31
 
31
- const [isOpen, setIsOpen] = useState(false);
32
32
 
33
33
  const panResponder = useRef(
34
34
  PanResponder.create({