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
1 answer

How to reference individual controls of a FormArray

I am stuck on what i need to use as the formControlName for my arrays in my reactive form, I want the array to be [1,2,3] but i want to to be able to add and delete from the array but also have multiple arrays, I can get it to work if I create new…
1
vote
1 answer

Are Nativescript and Angular Universal not compatible with each other?

A bit of a newbie with Nativescript so I tried to add Angular Universal building to an existing Angular 9/Nativescript app and received an error: [error] Error: Schematic "universal" not found in collection "@nativescript/schematics"
1
vote
1 answer

Removing .Spec file on nativescript angular on component generation

I am new to nativescript bot not new to angular. I am learning nativescript with angular at the moment. When generating a component in nativescript-NG project, I am getting the .spec file which is throwing syntax errors. Deleting it solves the…
1
vote
0 answers

Problem with Objective-C marshalling an "optionals" property in Nativescript

I'm building a NativeScript plugin for iOS to integrate a card payment terminal as an external accessory. It is almost done, and working, but I have problem with passing one argument called "optionals". This is the whole code I'm trying to…
1
vote
2 answers

Nativescript: ITMS-90535: Unexpected CFBundleExecutable Key

After I run tns publish ios --release apple connect showed me that my build is invalid. I got a mail with this error: ITMS-90535: Unexpected CFBundleExecutable Key - The bundle at '/Payload/MyApp.app/app/App_Resources/iOS/Info.plist' does not…
1
vote
0 answers

Nativescript RadDataForm - Provide valuesProvider from code behind

I have a form which needs to generate its fields dynamically. The fields will be of two type: text or dropdown. The text part is working fine but I'm having issues with the dropdown. I can't seem to set the valuesProvider of the field. Here's the…
Whip
  • 1,891
  • 22
  • 43
1
vote
1 answer

How to access inputs from Textfields in NativeScript and save them to variables like you can with document.getElementByID

So I'm just trying to save values from textfields to variables javascript. I'm seeing that I should do something like this from another post var view = require("ui/core/view"); function pageLoaded(args) { var page = args.object; var…
ZoomerCoder
  • 5
  • 1
  • 3
1
vote
2 answers

Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior. (FragmentClass)

This issue has been a plague on my migration of an application from NativeScript 5.4.0 to NativeScript 6.3.3. I am now using webpack.config.js in combination with nativescript-worker-loader (Workers). I have performed the required steps in the…
wareisjared
  • 330
  • 1
  • 2
  • 17
1
vote
3 answers

How to hide BottomNavigation bar in Nativescript

Please how can i hide Bottom Navigation in a particular page in nativescript core? The code for my BottomNavigation is in App-root.xml file. this makes it visible on all pages, i'm trying to hide it from a specific page. Below is my app-root.xml…
kunlee
  • 591
  • 1
  • 4
  • 15
1
vote
2 answers

Using FontAwesome with Nativescript-Vue

I'm just not succeeding in using FontAwesome icons in my Nativescript-Vue app. If I just want to use a regular icon, it works fine: But when I want a Solid (or I suppose any of the others),…
Ed Jones
  • 653
  • 1
  • 4
  • 19
1
vote
2 answers

Nativescript : Lifecycle missing onPause/onResume ? Should I stop subscriptions when page is navigatedFrom/away?

I think I am missing something in NativeScript (currently with Angular and testing on Android, both with latest versions). On one hand, each of my routes, initializes some Observable Subscription (watching data change, navigation changes, services…
Jscti
  • 14,096
  • 4
  • 62
  • 87
1
vote
0 answers

nativescript sidekick cloud build fails to execute firebase hooks

I'm using nativescript-plugin-firebase on my ios app. I can't use nativescript-sidekick cloud build. It gives me this strange error and I don't really have any idea how to deal with this: [20-02-06 01:33:31.307] (CLI) + 553 hidden…
yukashima huksay
  • 5,834
  • 7
  • 45
  • 78
1
vote
0 answers

NativeScript cant play multiple different videos on same page

I have Angular Nativescript app with listview page that holds multiple YoutubePlayer videos on page. When have multiple Youtube Player instances, player has its own videourl and the same api key as input. All videos are the same. I think it takes…
Ali Moh'd
  • 11
  • 1
1
vote
0 answers

Get Image Width & Height?

How can I get the width and height of an image in NativeScript? I've tried referencing like: And getting the width like: this.$refs.img1.getMeasuredWidth But no luck.
panthro
  • 22,779
  • 66
  • 183
  • 324
1
vote
2 answers

Nativescript Angular app crashes when receiving the second push notification

I have developed an app in Nativescript Angular for Android and IOS. When I send push notifications to the Android app, and the app is in background, the first notification can be opened without any issue. However if I try to open the second…
1 2 3
99
100