nativescript

Nativescript and FontAwesome

别来无恙 提交于 2019-12-23 12:17:12
问题 I am trying to use icon font FontAwesome in Nativescript application, which is possible according to this article https://www.nativescript.org/blog/mobile-app-best-practices---use-font-instead-of-image-to-show-an-icon I did everything that is described in that article: Added .ttf in app/fonts Added class in app.css .fa{ font-family: "FontAwesome"; } Used it in XML like so text="" class="fa" But result is rather disappointing: I also tried the "\uf230" syntax, but that renders as plain text.

In NativeScript with Angular, how can I get an interface element the id?

老子叫甜甜 提交于 2019-12-23 12:11:14
问题 I'm trying to avoid unexpected behavior in a NativeScript application. When I walk into any screen that has a search field (SearchBar) system puts the focus on the search field automatically. Then I got help with a friend who gave me a function to solve this problem. But the problem I'm facing right now is that I can not get the interface element. I have the following code: import {Component} from "@angular/core"; import {Page} from "ui/page"; import frame = require("ui/frame"); @Component({

Class 'Subject<T>' incorrectly extends base class 'Observable<T> Nativescript navigation drawer error

泄露秘密 提交于 2019-12-23 09:17:40
问题 # This is the error I am facing now: i downloaded navigation drawer sample using npm (https://github.com/shripalsoni04/nativescript-angular-drawer-template). but it gives the following error. dhrn@dhrn-Inspiron-5548:~/NativeApp/Supervisor$ tns run android Searching for devices... iTunes is not available for this operating system. You will not be able to work with connected iOS devices. Executing before-prepare hook from /home/dhrn/NativeApp/Supervisor/hooks/before-prepare/nativescript-dev

error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'

偶尔善良 提交于 2019-12-23 06:23:05
问题 I just set up the basic application. When I ran "npm run start.android". Its giving error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. and lots of "system.err" I am attaching all the screenshots at the end of my description please check once. The emulator is opening successfully but finally, end up with a lot of error messages. I removed "sourceMap" attribute, made true, false etc. But nothing worked out. I struck from past 2 days. Can somebody tell me the

Nativescript log slider value on update

心不动则不痛 提交于 2019-12-23 05:24:04
问题 I am new to Nativescript. Yesterday I asked how to create a slider and read those values. This question was answered however now I want to log those values once the value of the slider has been updated. I made a sample project that prints the value once I press a button. Now I want to print the value each time the value of the slider changes. I looked at the slider documentation and the propertyChange event documentation but can't get this to work. Here is the link to the playground I am

Dynamic tabs in TabView nativescript

筅森魡賤 提交于 2019-12-23 04:11:52
问题 Is it possible to create tabs dynamically for a tabview in nativescript? The following example is in the documentation of nativescript <TabView selectedIndex="0" (selectedIndexChange)="onIndexChanged($event)" sdkExampleTitle sdkToggleNavButton> <StackLayout *tabItem="{title: 'NativeScript'}"> <Label text="NativeScript" class="m-15 h2 text-left" color="blue"></Label> <ScrollView> <Label [text]="content" textWrap="true" class="m-15"></Label> </ScrollView> </StackLayout> <StackLayout *tabItem="

Nativescript: How to login as an admin and manage user account in Firebase

邮差的信 提交于 2019-12-23 04:07:05
问题 I am struggling to find a solution on how to use Firebase Admin services in order manage user account (remove user from Firebase Auth in particular). This nativescript-plugin-firebase provides all possible calls to firebase services, however there is no description about managing users with admin privileges. Maybe someone had similar issues or could share a workaround? 回答1: Here's how I manage this in my apps: My users have permissions such as "admin", "manager", etc. When an "admin" is

Where could I find sha1 fingerprint in nativescript android app?

天涯浪子 提交于 2019-12-23 03:52:12
问题 I getting error while using firesbase login with google JS: Make sure you've uploaded your SHA1 fingerprint(s) to the Firebase console JS: Has the SHA1 fingerprint been uploaded? Sign-in status: Status{statusCode=NETWORK_ERROR, resolution=null} How to fix this? 回答1: You can use this page to generate the SHA1 codes you need. https://developers.google.com/android/guides/client-auth Then in the Firebase console on the settings general tab there is a spot labeled: "SHA certificate fingerprints"

Nativescript iOS Application Profiling on Device

左心房为你撑大大i 提交于 2019-12-23 03:41:55
问题 How to run a Nativescript App without Telerik Platform and Apple Developer Membership. After searching on the Nativescript Documentation the only solution I found is with a Developer Membership of Apple. So after stucking a time on this I found a solution on how to run the App on Device without telerik appbuilder or Membership of Apple Developer. 回答1: After searching for a while on how to test a Nativescript App on iOS without Telerik Platform and no Apple Developer Membership, and no luck on

Get mac address and ip in Nativescript

我们两清 提交于 2019-12-23 03:28:51
问题 We are implementing a server for app distribution and we need restrict the access to the apps by: mac address ip At the moment I have not found any module that can obtain this data from the device in nativescript, so i don't know if there's a plugin or how else can I achieve this. 回答1: In nativescript you can access native apis of device so if there isn't any module/plugin for it you can use this option for accessing native apis. https://docs.nativescript.org/core-concepts/accessing-native