Questions tagged [nativescript]

NativeScript is an open source framework created by Telerik that makes native mobile app development easier for web developers. It enables developers to use JavaScript or TypeScript (with or without Angular or Vue) to build native mobile applications for iOS and Android. NativeScript apps render native UI components styled by a subset of CSS. Modules provide cross-platform native API abstractions. 100% of native APIs are available via JavaScript.

NativeScript is an open source (ASLv2) framework created by Progress for building truly native mobile apps with JavaScript, TypeScript, Angular or Vue. Use web skills and get native UI and performance on iOS and Android. The Angular developers can share code between Web and Mobile applications via the Code Sharing CLI.

NativeScript apps use native UI components. The framework provides a subset of CSS to make styling simple and familiar for web developers. Modules provide cross-platform API abstractions so that a single codebase can run on multiple platforms. The framework provides 0-day access to 100% of native APIs via JavaScript via build-time metadata generation.

As of March 2019, NativeScript is in version 5.3.0. See the NativeScript roadmap for information about prior and planned versions of NativeScript.

The source can be found at the NativeScript GitHub repository and issues are tracked on the NativeScript GitHub issue tracker.

Documentation

Playground

Logo

NativeScript logo

7280 questions
6
votes
2 answers

nativescript-mapbox showing black Map Markers

I am having an issue in the android emulator where my svg/icon Layers are showing as black. This sometimes effects highway/road markers as well as my map markers. The plugin is currently using the default marker, but I have also provided my own png…
Rohan
  • 456
  • 3
  • 16
6
votes
0 answers

Firestore Date loses timezone offset after retrieval and saving back to database

My local time zone is UTC+2. I am building a NativeScript app that has a RadCalendar control, in which the user can select dates. In my scenario the user selects 29, 30 and 31 January 2018. A console.dir() output of the selected dates shows as…
6
votes
1 answer

Window object in nativescript

I need to create a window object so that the external file, which is loaded inside iframe, can call nativescript function. I, specifically need window object because the file I am loading can be any file that follows conformant (SCORM) related to…
Deepika
  • 460
  • 5
  • 20
6
votes
3 answers

cannot read property global array of undefined in nativescript angular2

I got a runtime error as cannot read property listArr of undefined. I need to reuse that same array in multiple components. That's why I'm using Global array I have added relevant code.please check it. Global.ts : export class Global { public…
Stephen
  • 9,899
  • 16
  • 90
  • 137
6
votes
1 answer

UICollectionViewFlowLayout exception when executing XHR-Request in NativeScript

I tried to execute an POST-Request to a given API via Xcode 7. My error is: the behavior of the UICollectionViewFlowLayout is not defined because: the item height must be less than the height of the UICollectionView minus the section insets top…
Rüdiger
  • 893
  • 5
  • 27
  • 56
6
votes
1 answer

change NativeScript TabView default behaviour

I’m building a NS angular2 app and I encounter a problem with the default behavior of the TabView component. I don’t want it to pre-load all data when component is created. How can I prevent this behavior from happening. I only want to load data for…
s2472
  • 61
  • 2
6
votes
0 answers

Use Remote Config to set API Url in app - Good or Bad idea?

I have been reading a lot of articles in regards to security and other parties reverse engineering your app and then flooding your APIs etc. For my current (nativescript) app I am using Firebase for Auth and then have my own API URL hardcoded into…
6
votes
0 answers

ngTemplateOutlet: Cannot assign to a reference or variable

When using ngTemplateOutlet and context: The context data: this.Context = { $implicit: this.userName, 'password': this.password, 'Login':…
6
votes
2 answers

NativeScript: max number of lines on a Label

If I add textWrap="true" to a Label, text is wrapped over several lines, so far so good. But I have a very long string and our design only have room for two lines. How do I limit the Label to max two lines? I'd prefer not to set a height, since that…
mabs
  • 987
  • 1
  • 10
  • 17
6
votes
1 answer

Ruby gem show "Invalid argument" error for almost every command

I am working through NativeScript's set-up on OS X El Capitan and I am stuck at the point where I am supposed to install xcodeproj and cocoapods. Almost everything that I try to do with gem shows the same error: $ sudo gem install xcodeproj ERROR: …
Carlos Mermingas
  • 3,822
  • 2
  • 21
  • 40
6
votes
0 answers

Nativescript 2.3.0 grey images

I've just updated the core modules to 2.3.0 on my NativeScript app and all iOS and Android images have turned grey. Not sure why this has happened as it works fine in previous versions.
Luke Reed
  • 101
  • 1
  • 6
6
votes
2 answers

What is faster ionic2 or nativescript?

I was wondering if someone knows what has faster performance speed ionic2 or nativescript? Does ionic2 still run on top of Cordova's webview? Or is it similar to nativescript?
Daniel Izhar
  • 130
  • 1
  • 12
6
votes
7 answers

Nativescript Cannot find module 'nativescript-angular/http'

I am following the NativeScript tutorial here: Native Script Angular - Chapter 3 I'm having an error when trying to import nativescript-angular/http. it says Cannot find module 'nativescript-angular/http'. Am I missing anything? I noticed that…
PinoyCoder
  • 1,112
  • 8
  • 13
6
votes
1 answer

Moving from Ionic to NativeScript with at least efforts

What is the fastest way to move (migrate app) from Ionic to NativeScript with the least efforts? Without rewrite old AngularJS controllers and services. And using NativeScript with AngularJS not Angular 2. I need to re-write UI with CSS (replacing…
Al-Mothafar
  • 7,949
  • 7
  • 68
  • 102
6
votes
2 answers

Nativescript - Image not resizing

So i have this really wierd situation. I have 2 icons, 288x288px both. But the first icon, shows up bigger than the other in the app. Her is my xml:
IvRRimUm
  • 1,724
  • 3
  • 21
  • 40