react-native-in-app-debugger 2.0.0 → 2.0.1

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.
@@ -1,5 +1,5 @@
1
1
  import React, { use, useEffect, useState } from 'react';
2
- import { View, StyleSheet, TextInput, TouchableOpacity, Alert } from 'react-native';
2
+ import { FlatList, View, StyleSheet, TextInput, TouchableHighlight, TouchableOpacity, Alert } from 'react-native';
3
3
  import Text from '../Text';
4
4
  import X from '../X';
5
5
 
@@ -63,14 +63,14 @@ export default (p) => {
63
63
  useEffect(reset, [p.mockDetails]);
64
64
  const [canReset, setCanReset] = useState(false);
65
65
 
66
- // const parse = (data) => {
67
- // try {
68
- // return JSON.parse(data);
69
- // } catch (e) {
70
- // // Alert.alert('Error', 'Invalid JSON');
71
- // return {};
72
- // }
73
- // };
66
+ const parse = (data) => {
67
+ try {
68
+ return JSON.parse(data);
69
+ } catch (e) {
70
+ // Alert.alert('Error', 'Invalid JSON');
71
+ return {};
72
+ }
73
+ };
74
74
 
75
75
  useEffect(() => {
76
76
  try {
package/Mock/index.jsx CHANGED
@@ -1,5 +1,7 @@
1
1
  import React, { useState } from 'react';
2
- import { FlatList, StyleSheet, TextInput } from 'react-native';
2
+ import { FlatList, StyleSheet, TextInput, TouchableHighlight, View } from 'react-native';
3
+ import Text from '../Text';
4
+ import Highlight from '../Highlight';
3
5
  import MockGroup from './MockGroup';
4
6
 
5
7
  const format = (m) => '(' + m.request.method + ') ' + m.request.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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": {