nativescript-angular

NativeScript Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion

陌路散爱 提交于 2019-12-24 10:37:31
问题 I switched to {N} 5.0, now i have an issue with nativescript-google-map-sdk, same error as here: Android Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion The issue with Android API 28, there is a config that should be set manually in manifetst, https://developers.google.com/maps/documentation/android-sdk/config#specify_requirement_for_apache_http_legacy_library When I add <uses-library android:name="org.apache.http.legacy" android:required=

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

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({

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/ | |

How to access component method inside my ios delegate class

被刻印的时光 ゝ 提交于 2019-12-19 12:03:12
问题 How to access a method from the app component to main.ts file?? I am developing android and ios mobile application using Nativescript angular. I have created a ios delegate class for application onResume. I want to call the native script class component method inside of my ios delegate class. Help me achieve the functionality My ios delegate class: import { android, ios, AndroidApplication, AndroidActivityBundleEventData } from "tns-core-modules/application"; import * as application from "tns

Use Nativescript Core plugin in Nativescript Angular project

一个人想着一个人 提交于 2019-12-13 04:45:55
问题 I am using in my Nativescript Angular app the nativescript-google-maps-sdk plugin which works great. My issue is that I want to use cached images to display in a custom InfoWindow. For this purpose I am using the nativescript-web-image-cache plugin app-wide. When I use the regular <WebImage> tag in the infoWindow it complains that it is not a registered component: Module 'ui/web-image' not found for element 'WebImage' Everywhere else in the app it works just fine. In this issue is it

How to create a custom navigation bar in NativeScript?

五迷三道 提交于 2019-12-13 04:27:20
问题 I am new to NativeScript and experimenting with it a little via the playground. There are some UIs that i'd like to implement and don't see samples of and I was wondering what would it take to implement? specifically, I'd like to create a bottom navigation such as below, with the middle button. 回答1: Here is a pseudocode gives you the layout you are looking for. <GridLayout> <GridLayout rows="*,auto"> <StackLayout row="0" backgroundColor="#ccc"> <Label text="Your Content" fontSize="30"

“Error-ReferenceError-ErrorEvent is not defined” for NativeScript app

孤街醉人 提交于 2019-12-12 18:23:35
问题 I am a new learner of NativeScript. I am following a video tutorial on Coursera to create an Android project using NativeScript, and I got the above error that is made by this part of my code: process-httpmsg.service.ts : import { Injectable } from '@angular/core'; import { throwError } from 'rxjs'; import { HttpErrorResponse } from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class ProcessHTTPMsgService { constructor() { } public handleError(error: HttpErrorResponse |

Angular Cannot reattach ActivatedRouteSnapshot with a different number of children

二次信任 提交于 2019-12-12 12:48:15
问题 Here is my routing in a nativescript-angular project: const routes: Routes = [ { path: "", redirectTo: "/tabs/default", pathMatch: "full" }, { path: "tabs", loadChildren: "~/app/modules/tabs/tabs.module#TabsModule" }, { path: "login", loadChildren: "~/app/modules/login/login.module#LoginModule" }, { path: "register", loadChildren: "~/app/modules/register/register.module#RegisterModule" } ]; @NgModule({ imports: [NativeScriptRouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules

NativeScript Angular RadListView rendering extremely slowly

不羁的心 提交于 2019-12-11 18:26:55
问题 Problem: I have an angular-nativescript app that needs to display some items in a grid. I'm using a RadListView to render the list and after upgrading my angular, {N}, and other library dependencies over the last few months I've noticed the RadListView rendering of the items has gotten unbearably slow. I have multiple "tabs" so you can see different types of items and whenever you switch "tabs" it needs to completely re-render the list with the new times. Before doing some upgrades (which I