2017-02-25 89 views
1

我正在使用nativescript-barcodescanner掃描代碼,但找不到在屏幕上顯示此條形碼的任何解決方案。NativeScript。顯示條形碼和qr

+0

嗨,有同樣的問題,你找到解決方案嗎? –

+0

@LyubomirVelchev試試像這樣的默認js腳本。 http://lindell.me/JsBarcode/ – Andrii

回答

0

正確,該插件用於掃描,而不是顯示。

有很多服務可以將文本轉換爲條形碼。例如Google Chart API。只要嘗試添加一個圖像到您的視圖與此src:http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=1234567890

+0

Tnx,但我需要像這樣的https://github.com/lindell/JsBarcode。 – Andrii

+0

您是否在NativeScript中試用過該庫? –

+0

是的。但它使用'document.querySelector',它不起作用 – Andrii