Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
0eebedadc9
commit
e972cc4537
|
@ -44,9 +44,9 @@
|
||||||
(int (* 2 (/ (min height width) 3))))
|
(int (* 2 (/ (min height width) 3))))
|
||||||
|
|
||||||
(defview choose-recipient []
|
(defview choose-recipient []
|
||||||
(letsubs [dimensions (react/get-dimensions "window")
|
(letsubs [read-once? (atom false)
|
||||||
camera-flashlight [:wallet.send/camera-flashlight]
|
dimensions (react/get-dimensions "window")
|
||||||
view [:get :view-id]]
|
camera-flashlight [:wallet.send/camera-flashlight]]
|
||||||
[react/view {:style styles/qr-code}
|
[react/view {:style styles/qr-code}
|
||||||
[status-bar/status-bar {:type :transparent}]
|
[status-bar/status-bar {:type :transparent}]
|
||||||
[toolbar-view camera-flashlight]
|
[toolbar-view camera-flashlight]
|
||||||
|
@ -61,7 +61,9 @@
|
||||||
:aspect :fill
|
:aspect :fill
|
||||||
:captureAudio false
|
:captureAudio false
|
||||||
:torchMode (camera/set-torch camera-flashlight)
|
:torchMode (camera/set-torch camera-flashlight)
|
||||||
:onBarCodeRead #(re-frame/dispatch [:wallet/fill-request-from-url (camera/get-qr-code-data %) nil])}]]
|
:onBarCodeRead #(when-not @read-once?
|
||||||
|
(reset! read-once? true)
|
||||||
|
(re-frame/dispatch [:wallet/fill-request-from-url (camera/get-qr-code-data %) nil]))}]]
|
||||||
[viewfinder dimensions (size dimensions)]]
|
[viewfinder dimensions (size dimensions)]]
|
||||||
[bottom-buttons/bottom-button
|
[bottom-buttons/bottom-button
|
||||||
[button/button {:disabled? false
|
[button/button {:disabled? false
|
||||||
|
|
Loading…
Reference in New Issue