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

Integrate Android Service on NativeScript App

I need to develop an app that should periodically check for available WiFi networks and trigger an action once an specific network is on range. I plan to implement an Android service to handle the part on which it keeps checking for the available…
Ox3
  • 451
  • 1
  • 6
  • 22
12
votes
6 answers

How to position element at the bottom of Absolute Layout in NativeScript?

I want to position an element at the bottom of the screen in Absolute Layout in NativeScript. I have this code:
clzola
  • 1,925
  • 3
  • 30
  • 49
12
votes
1 answer

How to use swift library in NativeScript?

I am trying to use this ios-charts library in NativeScript. This library is written in Swift and not in Objective-C. Can I use it? I have tried to use it but it is giving me an error. I have used it in following steps: For which I have added…
Nabiya
  • 121
  • 1
  • 4
11
votes
2 answers

NativeScript + Vue.js + FontAwesome

I'm trying to use FontAwesome icon set to build an application over NativeScript and Vue.js but I can't figure out the problem since I not even have an error prompt message. I'm following the documentation as a faithful but nothing happens. I search…
jefr
  • 145
  • 1
  • 9
11
votes
3 answers

"tns doctor" "You need to have the Android SDK Build-tools installed on your system." but everything is installed

I have installed Android Studio and further installed the SDKs and tools via Android Studio. Here they are: And my $ANDROID_HOME paths to the following: /Users/USER/Library/Android/sdk both in the terminal as well as in Android Studio. However,…
Fane
  • 1,978
  • 8
  • 30
  • 58
11
votes
3 answers

gradlew.bat failed with exit code 1

i am very new to nativescript, i try to build my first app in nativescript, but it shows ============================================================================= C:\Nativescript\Grab1> C:\Nativescript\Grab1>tns prepare android Executing…
buvi
  • 163
  • 1
  • 2
  • 10
11
votes
5 answers

Is there localstorage in nativescript?

How to keep data in a NativeScript application persistent. Can anyone tell about localStorage in NativeScript? Edit: Was looking for localStorage at the time.
Naren
  • 4,152
  • 3
  • 17
  • 28
11
votes
1 answer

Adding a global variable / function in JavaScript (specifically NativeScript)

I'm learning how to write apps with NativeScript. I believe the best way to learn is by doing. For that reason, I'm building a basic app. In this app, I'm trying to create a function and a variable that I can access across ALL of the view models…
user687554
  • 10,663
  • 25
  • 77
  • 138
10
votes
3 answers

HTMLElement is not defined - Nativescript-vue

All I'm trying to do at this point is get the project to run. I run tns run android The application builds, but as it starts the app and throws an error ReferenceError: HTMLElement is not defined So this all started when I was trying to bring in…
Baron860
  • 127
  • 1
  • 5
10
votes
1 answer

NativeScript-Vue rendering RadListView very slow under android and freeze the UI

I have a nativescript-vue app with the RadListView component to display data to the user. Each row of the list include multiple informations for the current item. When i tap on a button to load and show the list the UI freeze (fast hardware ->…
10
votes
2 answers

Using collapse in listview items not removing the space for particular item view entirely

In listview items I'm using Visiblity concept in layout to perform visible and collapse. When performing Collapse, listview items not removing that view entirely from the layout. It is removing the item contents such as name and id but placing…
Stephen
  • 9,899
  • 16
  • 90
  • 137
10
votes
1 answer

iOS 3D Touch Support in Native Script

I want to utilize the 3D touch support in iOS through Native Script. Currently there is a Plugin for Quick actions, however i want to listen to ForceTouch actions of iOS devices. I want to do this using native iOS API but i am not sure how to get…
Idrees Khan
  • 7,702
  • 18
  • 63
  • 111
10
votes
6 answers

How to create angular 2 component into Nativescript Application?

I'm using nativescript with angular 2. I'm wondering how to rapidly create a ng component in a Nativescript Project. For example into Angular 2 to create a component we are using ng generate component hello. Is there a nativescript cli solution for…
3logy
  • 2,634
  • 8
  • 46
  • 99
10
votes
6 answers

NativeScript limitations

I´m evaluating differents mobile frameworks, and I think that nativescript is a good option. But I don't know if exists limitations on the development process. For example I had limitations on the styling (and that's not so important), but I want to…
Matías González
  • 1,366
  • 3
  • 15
  • 30
9
votes
3 answers

How to implement unit tests in NativeScript using TestBed and Jasmine?

I'm setting up a NativeScript-Angular project, and would like to implement unit tests using Jasmine-Karma in order to test my components using css selectors. How can I setup a simple unit test (beyond the sample test provided on the official…
George S
  • 323
  • 3
  • 15