removed failing react-native-json-tree

This commit is contained in:
2021-04-09 14:03:14 +02:00
parent ff8b95ce45
commit 52a6627e6b
4 changed files with 15 additions and 3 deletions

View File

@@ -13,7 +13,6 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"react-native-json-tree": "^1.2.0",
"styled-components": "^5.0.0-beta.8" "styled-components": "^5.0.0-beta.8"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -1,6 +1,6 @@
import React, { Fragment, createRef } from 'react'; import React, { Fragment, createRef } from 'react';
import styled from 'styled-components/native'; import styled from 'styled-components/native';
import JSONTree from 'react-native-json-tree'; import JSONTree from '../../JSON';
import { import {
ScrollView ScrollView
} from 'react-native'; } from 'react-native';

View File

@@ -9,7 +9,7 @@ import {
Emphasis, Emphasis,
Fixed, Fixed,
} from '../../base/text'; } from '../../base/text';
import JSONTree from 'react-native-json-tree'; import JSONTree from '../../JSON';
import Cell from '../../base/Cell'; import Cell from '../../base/Cell';
import CellHeader from '../../base/CellHeader'; import CellHeader from '../../base/CellHeader';
import Tab from '../Tab'; import Tab from '../Tab';

View 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;