![](/img/trans.png)
[英]Save a NativeScript/Angular ImagePicker selection or get the full file path
使用圖像選擇器選擇圖像后,我收到內容// url 使用 ImageSource.fromAsset() 時,我返回空 object。我當前的目標是將該圖像另存為新圖像,以便我可以將其發送到請求中。 我也嘗試過 Utils.android.getApplicationContext().getCont ...
[英]Save a NativeScript/Angular ImagePicker selection or get the full file path
使用圖像選擇器選擇圖像后,我收到內容// url 使用 ImageSource.fromAsset() 時,我返回空 object。我當前的目標是將該圖像另存為新圖像,以便我可以將其發送到請求中。 我也嘗試過 Utils.android.getApplicationContext().getCont ...
[英]NativeScript - How to Convert Magnetic Heading Degrees to True Heading Degrees
我正在使用 Nativescript 開發 IOS 應用程序我從 CLLocationManager 獲得磁航向度數位置服務.ts import * as geoLocation from "@nativescript/geolocation"; @Injectable() export clas ...
[英]How to update older version of nativescript project to work with version 8
我有一個項目,我幾年前在我以前的筆記本電腦上工作過(三星,Windows OS)。 我最近需要參考那個項目,所以我將源代碼移動到我當前的筆記本電腦(Mac M1)。 運行該應用程序后,我遇到了一堆錯誤。 大約有 57 個這樣的錯誤: 我在我以前的筆記本電腦及其版本 6.3 上運行了tns --ve ...
[英]NativeScript 8.2 : how to get direction using CLHeading trueHeading
我正在嘗試使用 CLHeading trueHeading 在我的 nativescript 應用程序中獲取方向,但它始終返回為 null。 定位服務.ts import { Injectable } from "@angular/core"; @Injectable() export class ...
[英]NativeScript 8.2 : Cannot read property 'portrait' of undefined
我在我的 NativeScript 版本 8.2 應用程序中使用NativeScript-Orientation-Free插件。 我的應用程序使用“tns run ios”編譯正常,但我在運行時遇到錯誤,當我嘗試設置方向時,我的應用程序崩潰了成分 import { Component, OnIni ...
[英]NativeScript Downloader plugin: Can not open zip file after downloading the file
我正在使用本機腳本 8 並使用ns 插件添加 @triniwiz/nativescript-downloader插件從服務器下載 zip 文件。 我收到下載響應 但是當插件試圖解壓縮相同的下載文件時,它給了我這個 我正在使用@nativescript/zip 來解壓縮下載的文件。 不確定代碼或插件是 ...
[英]When integrating old nativescript libraries throws Module not found: Error: Can't resolve 'tns-core-modules/application'
嘗試安裝 [Razor Pay 庫][1] [1]: https://www.npmjs.com/package/nativescript-razorpay 時,出現以下錯誤: 錯誤 in./node_modules/nativescript-razorpay/razorpay.android.j ...
[英]native script: WebView Interface plugin unable to find local resource
我在 nativescript 8 中使用webViewInterface插件nativescript 8 with webpack v5我正在嘗試啟動本地下載的文件 ex。 視頻、音頻、HTML 文件我能夠下載這些文件,但是在 webview 的幫助下運行該文件時,我得到了 在 NativeSc ...
[英]Building nativescript plugin strips out typings
A 使用來自 github 的官方插件種子編寫了 nativescript 插件這是一個非常簡單的插件,只有 2 個源文件: 索引.ts 索引.d.ts (和一個本地庫) 在index.ts中,我重新導出了一些像這樣的原生類:export const BlufiClient = com.esp3 ...
[英]Error in nativescript-permissions when running android app
我的應用程序運行良好,現在它向我顯示了一個錯誤,直到現在我才試圖弄清楚。 搜索后我發現我有一個插件"@nativescript/imagepicker": "^1.0.5"需要"nativescript-permissions": "~1.3.0" in package-lock.json ...
[英]NativeScript: @nativescript/geolocation vs nativescript-google-maps-sdk
執行靜態綁定生成器時出錯:文件已存在。 這可能會導致不希望的行為。 請更改其中一個擴展類的名稱。 文件:C:\\repo\\geo\\geoapp\\platforms\\android\\app\\src\\main\\java\\com\\tns\\FragmentClass.java 類: ...
[英]Cannot get NFC write work on NativeScript 7 or 8
我fork了插件nativescript-nfc並為iOS實現了NFC寫入功能,在使用NativeScript 6時效果很好。但是如果我將插件升級到7或8,則寫入不起作用, NFCNDEFTag.prototype.queryNDEFStatusWithCompletionHandler始終未定義. ...
[英]How do i generate a nativescript plugin tarball with the new workflow?
我正在嘗試圍繞原生 iOS/Android SDK 構建一個插件。 我想知道最終生成一個 my-plugin.tgz 文件,以便我可以在本地使用它而無需發布它。 我已使用 Nativescript 6.x 完成此操作,但我想知道如何使用 Nativescript 7.x 中的新工作流程來完成此操作。 ...
[英]Nativescript: Action bar background colour is not visible in iOS15
我正在使用 Nativecript(6.5.2) 移動應用程序,它在 android 和 iOS 設備上都運行良好,但是操作欄背景顏色在版本為 iOS 15 的 iOS 設備上不可見。否則,該應用程序絕對可以正常工作美好的。 我不確定 ios 是否更新了他們的 UI 政策或其他內容。 下面是 iOS ...
[英]NativeScript-Vue: How to install BottomNavigation component
如何在此處安裝游樂場中使用的 BottomNavigation 組件? https://play.nativescript.org/?template=play-vue&id=Evc8t6&v=4 我正在使用 NativeScript 8,看起來 NativeScript 的最新版 ...
[英]NativeScript cannot launch iOS emulator
當我運行ns run ios時模擬器啟動但是,無法部署應用程序並出現以下錯誤: 環境NativeScript:8.0.1,Xcode:12.4,iOS 14.4 ...
[英]Getting Error when resize image received from URL in Nativescript App
從 URL 檢索后,我試圖在 Angular+Nativescript 應用程序中調整圖像大小,但收到以下錯誤:- ERROR 錯誤:未捕獲(承諾中):TypeError:imageSource.resize 不是 function。 (在 'imageSource.resize(100)' 中 ...
[英]Nativescript Firebase Plugin storage functions on NS7 error
升級到 NS7 並更新我的代碼導入后,我無法使用 firebase 'firestore' 功能。 每當調用任何 firebase 存儲 function 時,我都會收到: CONSOLE ERROR: ERROR TypeError: Cannot read property 'listAll' ...
[英]How can I use custom themes in nativescript?
我目前正在開發一個可能具有不同主題的應用程序,具體取決於客戶端,以前此功能是使用akylas-teme 制作的。 但我將項目遷移到 angular 11 和 nativescript 7 所以這個解決方案不再適用於我。 我怎樣才能執行與以前相同的功能? 為每個客戶提供動態主題。 如果需要執行解決方 ...
[英]Nativescript Background Http request Error Code 400
我正在嘗試將圖像文件上傳到我的后端。 但是,無論是什么設備(Android 或 IOS),我都會收到 400 錯誤代碼。 不知道我做錯了什么,但我按照@nativescript/background-http 上的文檔上傳文件 Nativescript 版本:7 Angular 版本號:10 ...