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
7
votes
4 answers

'tns' is not recognized as an internal or external command, operable program or batch file. NativeScript

I am new to NativeScript and am currently going through the installation steps described here (http://docs.nativescript.org/angular/tutorial/ng-chapter-1) and I just completed executing the PowerShell script @powershell -NoProfile -ExecutionPolicy…
Robert Green MBA
  • 1,834
  • 1
  • 22
  • 45
7
votes
1 answer

"assertion failed" warnings

I'm getting the following warnings/errors every time I run my ios emulator. At the moment the app is very simple, just a tutorial app. This is what I see in the console: ** BUILD SUCCEEDED ** Project successfully built. Using …
Wittner
  • 583
  • 5
  • 21
7
votes
2 answers

How to change TextView bottom accent colour on Android NativeScript app

I'm currently trying to figure out how to change the colour of the bottom border of a text input from the default blue. I've tried using the border-color, color and background-color properties but none seem to have an effect on the input. This is…
Zach
  • 71
  • 1
  • 4
7
votes
2 answers

How to build NativeScript project for IOS on Windows?

Please dont tell me about the licence issue. I just want to be able to test my code in both environements (Android/IOS) at the same time. I am not interested in the Virtualisation of IOS because its very slow.
Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44
7
votes
1 answer

Nativescript storing user tokens

Is it a good practice or am i missing something? I wan't to store user access and refresh token returned from a Web API in application-settings or do we have password vault equivalent in nativescript or do we use sql lite My requirement is that my…
Atul Chaudhary
  • 3,698
  • 1
  • 31
  • 51
7
votes
3 answers

Custom Dialog in NativeScript

I am learning NativeScript. As part of that effort, I am attempting to create a page that shows a dialog to the user. When the user clicks a button, I need to show them a dialog that allows them to enter two values (first name and last name). The…
Some User
  • 5,257
  • 13
  • 51
  • 93
6
votes
3 answers

how to create a folder and file in internal storage using kotlin

I'm trying to create a file and folder on my internal storage in manifest i have these…
Vikas Acharya
  • 3,550
  • 4
  • 19
  • 52
6
votes
3 answers

How to effectively disable Dark Mode theming in Nativescript?

I tried to add UIUserInterfaceStyle Light to App_Resources/iOS/Info.plist But the app still is with dark mode, even after rebuilding it and deleting hooks, node_modules and platforms. I'm using tns preview --bundle.
Gabriel S.
  • 167
  • 2
  • 10
6
votes
2 answers

Upload to Rails Shrine from NativeScript

I'm using Rails 5.2 with the Shrine gem for image upload. On the client side I'm using NativeScript 6.0 with Angular 8.0. I've installed Shrine and it's working on the Rails side and direct upload via Uppy. On the frontend (Android mobile) using…
map7
  • 5,096
  • 6
  • 65
  • 128
6
votes
1 answer

Property 'schedule' does not exist on type 'typeof import().ts'

I am just a new learner and following a video tutorial, my code looks like this: import { Injectable } from '@angular/core'; import { Dish } from '../shared/dish'; import { DishService } from '../services/dish.service'; import { Observable } from…
Hasani
  • 3,543
  • 14
  • 65
  • 125
6
votes
1 answer

nativescript-toast not showing on iOS

After I updated to the latest version of nativescript-toast it stopped working in iOS (In Android it's working fine). I mean, the toast are not being shown, while the app works as expected. In the previous version everything was as expected. But…
Faabass
  • 1,394
  • 8
  • 29
  • 58
6
votes
3 answers

Is there any way to build IOS app on Windows?

I'm developing native apps but I have a Windows pc. Is there an actual way to build iOS apps on Windows? And can I run an ios emulator on Windows? I researched but I can't find an actual way. I tried to install MacOS Sierra on Virtual Box but it…
Takitaha
  • 103
  • 1
  • 2
  • 12
6
votes
2 answers

Is it possible to create Custom Push Notifications with a REST service backed server?

I have an OpenEdge database, I have created a REST Service and am able to CRUD to it from the outside World. I have created a Nativescript app that can pull data from the REST service etc, but now i want Push notifications. I know about the…
6
votes
2 answers

AAPT: error: resource android:attr/colorError not found

I'm executing "tns run android" on a NativeScript project but I'm getting the following errors: C:\Users\jim\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a …
user9173787
  • 139
  • 1
  • 1
  • 4
6
votes
2 answers

What is the best ways to set up different environment variables for NativeScript with Angular?

In Angular, the the de facto way to load env vars into the app is using environment.ts which is part of the cli. In NativeScript, it seems like that doesn't work with the NativeScript cli. What's the best way to do so?
Ka Mok
  • 1,937
  • 3
  • 22
  • 47