don't use webview

This commit is contained in:
Andrey Shovkoplyas 2019-08-27 11:38:52 +03:00 committed by Pedro Pombeiro
parent 3b52a61bdf
commit d432dc980e
No known key found for this signature in database
GPG Key ID: C4A24185B2AA48A1
3 changed files with 5 additions and 4 deletions

View File

@ -54,7 +54,6 @@
(def status-bar-class (when-not platform/desktop? (get-react-property "StatusBar")))
(def scroll-view-class (get-class "ScrollView"))
(def web-view (get-class "WebView"))
(def keyboard-avoiding-view-class (get-class "KeyboardAvoidingView"))
(def refresh-control (get-class "RefreshControl"))

View File

@ -45,7 +45,6 @@
(def status-bar-class (get-web-class "StatusBar"))
(def scroll-view-class (get-web-class "ScrollView"))
(def web-view nil)
(def keyboard-avoiding-view-class (get-web-class "KeyboardAvoidingView"))
(def refresh-control nil)

View File

@ -2,13 +2,16 @@
(:require [status-im.ui.components.react :as react]
[reagent.core :as reagent]
[status-im.utils.platform :as platform]
[status-im.utils.http :as http]))
[status-im.utils.http :as http]
[status-im.ui.components.webview-bridge :as components.webview-bridge]))
(defn html [uri width height]
(str
"<!DOCTYPE html>\n
<html>
<head>
<meta content=\"ie=edge\" http-equiv=\"x-ua-compatible\" />
<meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />
<style type=\"text/css\">
img {
display: block;
@ -43,7 +46,7 @@
(fn []
[react/view {:style style
:on-layout #(reset! width (-> % .-nativeEvent .-layout .-width))}
[(react/web-view)
[components.webview-bridge/webview-bridge
{:java-script-enabled false
:third-party-cookies-enabled false
:scroll-enabled false