angular2-nativescript

Using Angular libraries in Nativescript code sharing project

时间秒杀一切 提交于 2019-12-23 19:55:02
问题 I'm trying to migrate an Angular app to a shared codebase with Nativescript using the new @nativescript/schematics , however, I'm having problems importing my Angular library when building the mobile version of the app. I used the angular-cli to create the library ( ng generate library ). For the web version, all I had to do was build the library separately using ng build library-name which then allowed me to import it into the main application. How can I build a mobile version of the library

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

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"

How import/export sqlite database in nativescript/angular android?

余生颓废 提交于 2019-12-23 02:47:16
问题 I'm trying to export the whole sqlite database into sd card memory with a button click for a project (Backup feature). I googled for the same, but seems negative response. I'm using https://github.com/NathanaelA/nativescript-sqlite plugin for this. Also need to import the exported database with file picker. Right now, I'm trying to reach it using java code with nativescript . Any nativescript way help will be appreciated. Thanks in advance. 回答1: my solution to export database for android was

Angular Workspace with two Angular + Nativescript Code sharing Project + Library

断了今生、忘了曾经 提交于 2019-12-22 12:43:14
问题 I have a structure like this: AngularWorkspace/ |--app/ | | -- |--dist/ | |-- |--node_modules/ | |-- |--projects/ | |--library/ | |--AngularNativescriptAppOne/ | | |--App_Resources | | |--src | | | |--app/ | | | |--assets/ | | | |--environments/ | | | |--environments/locale | | | |--environments/package.json | | | |--environments/tsconfig.app.json | | | |--environments/main.ts | | | |--environments/main.ns.ts | |--AngularNativescriptAppTwo/ | | |--App_Resources/ | | |--src/ | | | |--app/ | |

Angular workspace with multiple Angular + Nativescript Code sharing projects and a resusable library

前提是你 提交于 2019-12-22 10:46:52
问题 Environment 'tns info' √ Getting NativeScript components versions information... ‼ Update available for component nativescript. Your current version is 5.1.0 and the latest available version is 5.1.1. ‼ Update available for component tns-core-modules. Your current version is 5.1.1 and the latest available version is 5.1.2. √ Component tns-android has 5.1.0 version and is up to date. × Component tns-ios is not installed. CLI: @angular/cli@7.1.4 Cross-platform modules: N/A Android Runtime:

Nativescript scroll to bottom of ScrollView programmatically

南笙酒味 提交于 2019-12-22 09:38:06
问题 In my Nativescript Angular application, I have a TextView within a ScrollView, defined as such: <ScrollView orientation="vertical" height="70%" width="100%" style="margin-bottom: 1%; background-color:white" (loaded)="onScrollerLoaded($event)"> <TextView id="terminal" [text]="terminalText" editable="false" style="color: whitesmoke; background-color: black; font-size: 8%; font-family: monospace" height="100%" (tap)="onTap($event)" (loaded)="onTerminalLoaded($event)"> </TextView> </ScrollView>

Integrating nativescript-paytm plugin in nativescript-vue application

流过昼夜 提交于 2019-12-22 08:02:11
问题 I'm having a nativescript-vue application where I want to integrate nativescript-paytm plugin, I created a method on click event: payNow() which contains all the necessary details of Paytm as described in Readme.md/documentation/demo app. import { Paytm, Order, TransactionCallback, IOSCallback } from "@nstudio/nativescript-paytm"; const paytm = new Paytm() methods: { payNow() { paytm.setIOSCallbacks({ didFinishedResponse: function(response) { console.log(response); }, didCancelTransaction:

How can I specify or get the resource id of a nativescript textfield

最后都变了- 提交于 2019-12-21 07:16:39
问题 We are using nativescript with angular for our mobile app. I want to use the Google Play pre-launch report feature, but our app requires a password to be entered. Google Play allows specifying a password but you need a resource name so the testing script can identify where to put the password. How can I specify or receive the resource name of a nativescript textfield, either in the view or by code behind or via any other means? The view in question: <StackLayout class="form"> <GridLayout