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
1
vote
0 answers

New Text Not Getting Added to FormattedString in NativeScript

I'm not sure if things aren't working the way they should, or my understanding is off. So I'm hoping someone can give me a nudge in the right direction. I'm looking to use FormattedString within a TextView in a NativeScript (Typescript-based)…
Rick
  • 245
  • 3
  • 13
1
vote
1 answer

How to turn window background black on showing modal view in nativescript

As shown in the image 1 below, when the modal view on ios 13 shows up, the default background is black. But on nativescript, the default background is white as shown in the image 2. How to achieve the image 1 kind of background (black) using…
1
vote
1 answer

Nativescript can not get TextField value Have not found a solution anywhere

Nativescript with just Javascript. I can't get the text value from the TextField. The getViewById returns undefined. I have tried everything suggested on stackoverflow and other websites. What am I doing wrong? My XML is
iannhigginson
  • 63
  • 1
  • 6
1
vote
0 answers

Nativescript App versioning discrepancy between Sidekick and xCode

I am setting up my NS 6.4.2 app in Sidekick as Application Version 5.00 and Application Build Version as 5.03. When I run tns ios prepare --release on my Mac and open Xcode to publish the app, I see Verson 5.03 and Build 5.00. It looks like the…
dpdragnev
  • 2,011
  • 2
  • 28
  • 55
1
vote
1 answer

HmacSHA1 different result in Node crypto and CryptoJS

I am implementing two factor authentication with Google Authenticator in a NativeScript app starting from this implementation. Since Node's crypto module doesn't run inside NativeScript, I am trying to make it work with CryptoJS. This is the working…
TomG
  • 538
  • 4
  • 20
1
vote
1 answer

NativeScript-Vue with Typescript in VSCode with Vetur: Alert with then giving Property 'then' does not exist on type 'void'

I'm using VSCode with Vetur. This is my code: alert({ title: 'Success!', message: 'Account created successfully', okButtonText: 'Okay' }).then(() => { console.log('Alert dialog closed!'); }) I get the error Property 'then' does not exist…
Ayudh
  • 1,673
  • 1
  • 22
  • 55
1
vote
0 answers

Why is AbstractControl root property self referencing in Nativescript?

I'm currently writing a Nativescript angular based application. One of the requirements is a change password function where the user enters a new password in field A and then needs to confirm the password in field B. Doing this in angular with a…
1
vote
0 answers

Nativescript angular new project creating error

I installed all the environment setups for nativescript angular but I can't create new project using tns create command when I tried it shows me a error like this can anyone pls help me to solve to error While trying I got this below error npm WARN…
Vimal R.S
  • 11
  • 2
1
vote
2 answers

Nativescript Chat UI iOS Issues

I am creating a chat UI interface in Nativescript and I almost have everything working, but I am having a few issues in iOS that I cannot figure out. Everything in Android works correctly. Problem 1: When I focus on the TextView and the keyboard…
1
vote
1 answer

Nativescript Angular compiling error "mergeDexDebug"

I am using nativescript v6.4 and angular v8.2 and in project i have install 4-5 plugin and it work fine but after installing one more plugin i.e nativescript-firebase-plugin i got this error when compiling the project. Execution failed for task…
Rk dev tech
  • 190
  • 1
  • 14
1
vote
1 answer

Nativescript / Android: avdmanager shows devices but nativescript can't find them

To install android virtual devices on linux I have follow this instruction https://docs.nativescript.org/tooling/android-virtual-devices I have installed everything, downloaded and created an AVD. So when I run ./avdmanager list I get a bunch of…
1
vote
1 answer

Nativescript Vue on android not updating image in drawable folder

I've added images to my drawable folder, namely, I've changed the image icon.png from the default to my custom image. I've also added a screen.png image however when I try to load the image: I still see the old…
Ayudh
  • 1,673
  • 1
  • 22
  • 55
1
vote
1 answer

How can i show a red dot or a number as badge in TabStripItem - nativescript (Angular + Android )

I am working to show a notification in the form of a red dot or a number on Bottom Navigation item for Nativescript - Angular - Android. so far i could only find solutions related to TabView. (…
SmartElf
  • 11
  • 2
1
vote
0 answers

Native script How do I access 10.0.2.2 android

I am attempting to make the call async RetrieveReports() : Promise { const response = await fetch("http://10.0.2.2:5001/weatherforecast"); const body = await response.json(); var reports = body; return reports; …
Trevor Tiernan
  • 392
  • 1
  • 3
  • 9
1
vote
1 answer

Calling js method onCreateView failed System.err: TypeError: Right-hand side of 'instanceof' is not an object Nativescript

I'm trying to use AppSync in my Nativescript application. This is the link I am following https://market.nativescript.org/plugins/nativescript-app-sync Following this above link I have a code that checks whether the app is up to date or…