diff --git a/packages/lib/package.json b/packages/lib/package.json index eefc99e..4923248 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,6 +1,6 @@ { "name": "react-native-debug-console", - "version": "2.0.0-alpha.7", + "version": "2.0.0-alpha.9", "main": "lib/index.js", "react-native": "lib/native.js", "repository": { @@ -9,7 +9,7 @@ "scripts": { "test": "jest", "bundle": "babel --copy-files --extensions '.ts,.tsx,.js' -d lib src", - "postpublish": "yarn run bundle" + "prepublish": "yarn run bundle" }, "license": "MIT", "dependencies": { @@ -19,6 +19,7 @@ "peerDependencies": { "prop-types": "^15.6.0", "react": "^16.8.3", - "react-native": "^0.59.8" + "react-native": "^0.59.8", + "react-native-webview": "^6.9.0" } } diff --git a/packages/lib/src/components/DevTool/Requests/Details.js b/packages/lib/src/components/DevTool/Requests/Details.js index 0a2db72..bf0247a 100644 --- a/packages/lib/src/components/DevTool/Requests/Details.js +++ b/packages/lib/src/components/DevTool/Requests/Details.js @@ -4,6 +4,7 @@ import { View, } from 'react-native'; import styled from 'styled-components/native'; +import { WebView } from 'react-native-webview'; import { Emphasis, Fixed, @@ -13,9 +14,6 @@ import Cell from '../../base/Cell'; import CellHeader from '../../base/CellHeader'; import Tab from '../Tab'; -const WebView = styled.WebView` -`; - const theme = { scheme: 'bright', author: 'chris kempson (http://chriskempson.com)',