No camera is shown if scan QR. White screen is shown instead. (#1120)

This commit is contained in:
alwx 2017-05-01 19:23:46 +03:00 committed by Roman Volosovskyi
parent 0c53936d61
commit 1a88b647b4
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@
(defn navigate-to-scanner
[_ [_ identifier]]
(dispatch [:navigate-to :qr-scanner identifier]))
(dispatch [:request-permissions
[:camera]
#(dispatch [:navigate-to :qr-scanner identifier])]))
(register-handler :scan-qr-code
(after navigate-to-scanner)