mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
removed failing react-native-json-tree
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"react-native-json-tree": "^1.2.0",
|
||||
"styled-components": "^5.0.0-beta.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { Fragment, createRef } from 'react';
|
||||
import styled from 'styled-components/native';
|
||||
import JSONTree from 'react-native-json-tree';
|
||||
import JSONTree from '../../JSON';
|
||||
import {
|
||||
ScrollView
|
||||
} from 'react-native';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
Emphasis,
|
||||
Fixed,
|
||||
} from '../../base/text';
|
||||
import JSONTree from 'react-native-json-tree';
|
||||
import JSONTree from '../../JSON';
|
||||
import Cell from '../../base/Cell';
|
||||
import CellHeader from '../../base/CellHeader';
|
||||
import Tab from '../Tab';
|
||||
|
||||
13
packages/lib/src/components/JSON/index.js
Normal file
13
packages/lib/src/components/JSON/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
Fixed,
|
||||
} from '../base/text';
|
||||
|
||||
const JSONTree = ({ data }) => (
|
||||
<Fixed>
|
||||
{ JSON.stringify(data, null, ' ') }
|
||||
</Fixed>
|
||||
);
|
||||
|
||||
export default JSONTree;
|
||||
|
||||
Reference in New Issue
Block a user