don't use webview
This commit is contained in:
parent
3b52a61bdf
commit
d432dc980e
|
@ -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"))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue