nativescript

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=

Nativescript Stacklayout does not layout properly?

六眼飞鱼酱① 提交于 2019-12-24 09:28:42
问题 I have this simple layout markup : <StackLayout orientation="horizontal" #myStack> <StackLayout width="300" backgroundColor="red"> </StackLayout> <StackLayout width="300" backgroundColor="green"> </StackLayout> </StackLayout> As you can see , both are same width of 300: Let's see this : Notice that green is also 300 but we only see a part of it since 300+300 > screen size . Ok so let's try to animate #myStack (!!) to the left , in order to see the left green : ngOnInit(): void { setTimeout(()

Nativescript Socket connection timeouted

徘徊边缘 提交于 2019-12-24 09:16:19
问题 Recently I have started facing a strange issue with Nativescript. When I try to run the android application using tns run android I get following error message Unable to apply changes on device: HQ64MZ576132. Error is: Socket connection timeouted.. I dont know how to identify the actual issue. To fix this issue, I need to copy app folder from another working nativescript application and then replace all the file from repository and eventually I am back to normal running application. Following

iOS Provision violated for watchdog scene-create using Pushkit

你说的曾经没有我的故事 提交于 2019-12-24 09:13:32
问题 Issue Provision violated for watchdog scene-create: <FBSProcessResourceProvision: 0x282c3bc00; allowance: <; FBSProcessResourceAllowance; type: scheduledTime; timeValue: 0.40s>; violated: YES> In my Nativescript-Angular app, older iOS devices like the iPhone6 fail to launch via pushkit because watchdog terminates it. I am not doing any network actions (which seems to be the main reason for watchdog from other posts). I created a dummy app which have the same app module, app component and all

NativeScript How to hide tab buttons from TabView

梦想与她 提交于 2019-12-24 09:05:58
问题 I've got a TabView in my NativeScript page. The tabs content is programmatically populated. How to hide / collapse the tabs buttons (because the tabs are switched programmatically)? see Image above of TabView buttons bar - which needs to be collapsed 回答1: You can try For ios: var myTabView = page.getViewById("myTabView") myTabView.ios.tabBar.hidden = true; For android myTabView.android.removeViewAt(1); 回答2: A better solution for android (I hope i translated it correctly from my working

Binding itemTap on ViewModel method in Nativescript

六月ゝ 毕业季﹏ 提交于 2019-12-24 08:49:31
问题 I am a little bit confused with Nativescript event handling. I am using typescript with clear separation of code-behind and viewmodel, and I am trying to bind an itemTap property to a viewmodel method (just like in the example shown in https://github.com/NativeScript/template-hello-world-ts/blob/master/main-view-model.ts). XML: <Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" loaded="pageLoaded" class="page"> <StackLayout> <ListView items="{{ items }}" itemTap

multiple select angular nativescript

好久不见. 提交于 2019-12-24 07:25:10
问题 I need to build a multiple item select UI element for my nativescript angular app. There does not seem to be a nativescript UI component supporting multiple selection. Any examples of how I could implement this for my app? 回答1: Use Nativescript UI. List view and side drawer is free. http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/ListView/selection multiple selection - allows for selecting multiple items. RadListView keeps track of which items are selected and exposes them

Nativescript/Js. How can I change the appearance of TabViewItem?

好久不见. 提交于 2019-12-24 06:52:22
问题 How do I change the appearance of TabViewItem ()? I'm trying to set the radius of the border and the width of the border, as in the picture: but it does not work: var tabViewModule = require("ui/tab-view"); var tabEntry0 = new tabViewModule.TabViewItem(); tabEntry0.borderRadius="30%"; tabEntry0.borderWidth="30%"; Who know, how it doing.? 来源: https://stackoverflow.com/questions/45369470/nativescript-js-how-can-i-change-the-appearance-of-tabviewitem

How to change the status bar color in IOS without an Actionbar in Nativescript?

梦想的初衷 提交于 2019-12-24 06:34:01
问题 I can't work out how to change IOS's status bar in nativescript without the requirement of having an ActionBar / NavigationBar. I've tried: var navController = frame.topmost().ios.controller; let navigationBar = navController.navigationBar; navigationBar.barStyle = UIBarStyle.Black; But this totally fails when there is no ActionBar! 回答1: This solution works! Step 1: Add the below to app/App_Resources/iOS/Info.plist . <key>UIStatusBarStyle</key> <string>UIStatusBarStyleLightContent</string>

Nativescript Stuck at Copying template files

半城伤御伤魂 提交于 2019-12-24 06:00:03
问题 I have a NativeScript + angular project it was working fine until i upgraded my cli to 7.0.3 now i can't run the following : tns run android --bundle because it get stuck at : Webpack compilation complete. Watching for file changes. Webpack build done! Copying template files... I've tried to wait more than an hour all it created was platform folder with android and temp-android and not the complete project it use to generate my environment is currently like this when i run ng --version from