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 status-bar-class (when-not platform/desktop? (get-react-property "StatusBar")))
|
||||||
|
|
||||||
(def scroll-view-class (get-class "ScrollView"))
|
(def scroll-view-class (get-class "ScrollView"))
|
||||||
(def web-view (get-class "WebView"))
|
|
||||||
(def keyboard-avoiding-view-class (get-class "KeyboardAvoidingView"))
|
(def keyboard-avoiding-view-class (get-class "KeyboardAvoidingView"))
|
||||||
|
|
||||||
(def refresh-control (get-class "RefreshControl"))
|
(def refresh-control (get-class "RefreshControl"))
|
||||||
|
|
|
@ -45,7 +45,6 @@
|
||||||
(def status-bar-class (get-web-class "StatusBar"))
|
(def status-bar-class (get-web-class "StatusBar"))
|
||||||
|
|
||||||
(def scroll-view-class (get-web-class "ScrollView"))
|
(def scroll-view-class (get-web-class "ScrollView"))
|
||||||
(def web-view nil)
|
|
||||||
(def keyboard-avoiding-view-class (get-web-class "KeyboardAvoidingView"))
|
(def keyboard-avoiding-view-class (get-web-class "KeyboardAvoidingView"))
|
||||||
|
|
||||||
(def refresh-control nil)
|
(def refresh-control nil)
|
||||||
|
|
|
@ -2,13 +2,16 @@
|
||||||
(:require [status-im.ui.components.react :as react]
|
(:require [status-im.ui.components.react :as react]
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[status-im.utils.platform :as platform]
|
[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]
|
(defn html [uri width height]
|
||||||
(str
|
(str
|
||||||
"<!DOCTYPE html>\n
|
"<!DOCTYPE html>\n
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta content=\"ie=edge\" http-equiv=\"x-ua-compatible\" />
|
||||||
|
<meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />
|
||||||
<style type=\"text/css\">
|
<style type=\"text/css\">
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -43,7 +46,7 @@
|
||||||
(fn []
|
(fn []
|
||||||
[react/view {:style style
|
[react/view {:style style
|
||||||
:on-layout #(reset! width (-> % .-nativeEvent .-layout .-width))}
|
:on-layout #(reset! width (-> % .-nativeEvent .-layout .-width))}
|
||||||
[(react/web-view)
|
[components.webview-bridge/webview-bridge
|
||||||
{:java-script-enabled false
|
{:java-script-enabled false
|
||||||
:third-party-cookies-enabled false
|
:third-party-cookies-enabled false
|
||||||
:scroll-enabled false
|
:scroll-enabled false
|
||||||
|
|
Loading…
Reference in New Issue