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
2 answers

How to get element in nativescript using vue?

I want to get Image element with id='item' on created. I can't seem to find anything on google. Most of the tutorial on the internet is using Typescript and always start with page=args.object export function pageLoaded(args) { page =…
GTHell
  • 603
  • 1
  • 8
  • 20
7
votes
7 answers

Single code base for mobile and web

We are going to begin a project for our company a order status application that will be hosted as web app as well as android/ios app.We started researching and came with conclusion to start with React and React Native or Angular and Native…
anbu selvan
  • 725
  • 3
  • 13
  • 41
7
votes
1 answer

Nativescript project running with Visual Studio Emulator

I have a Nativescript application that I'm developing using VS Code and have no issues when I try to run it using the Nativescript launch configurations from the Nativescript extension, when I'm using a real device connected with USB or when I use…
7
votes
1 answer

brew cask install android-sdk

I’m having problem to install android sdk (brew cask install android-idk) on Mac OS X. I tried to install it for nativescript. I read on people that had the same problem but i couldn't find working solution. I tried to change the java path maybe it…
haim
  • 589
  • 3
  • 7
  • 11
7
votes
2 answers

how to debug nativescript app in chrome browser and view output in chrome

Hello I m new to NativeScript, as per the docs available on NativeScript site, I had created a demo app with NativeSript + Angular and deployed that on device but for debugging i want it to run on web browser like chrome to get the view of app and…
Rohan Sampat
  • 930
  • 1
  • 13
  • 30
7
votes
2 answers

Class 'Subject' incorrectly extends base class 'Observable Nativescript navigation drawer error

# This is the error I am facing now: i downloaded navigation drawer sample using npm (https://github.com/shripalsoni04/nativescript-angular-drawer-template). but it gives the following error. dhrn@dhrn-Inspiron-5548:~/NativeApp/Supervisor$ tns run…
7
votes
3 answers

how to give border and border-radius to stacklayout in nativescript

I'm new to nativescript.I don't know how to give border and border-radius to stacklayout. Below I have posted what I tried so far: component.html:
7
votes
1 answer

nativescript how to make element transparent to touch events

For one of my projects, I need to develop a vignetting effect over a google map in nativescript (IOS App) so I decided to go with the png24 image solution stretching over the google map view.
Vincent Duprez
  • 3,772
  • 8
  • 36
  • 76
7
votes
2 answers

NativeScript ANDROID_HOME missing

When I run tns run android or tns doctor I get an error that the ANDROID_HOME environment variable is not set. Yet it's clearly set. Mac OSX Sierra 10.12.3. bash-3.2$ tns run android The ANDROID_HOME environment variable is not set or it points to…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
7
votes
2 answers

"__assign is not defined" - NativeScript Object Spread Woes

I was making good progress with a native-script project until this happened: JS: EXCEPTION: Uncaught (in promise): ReferenceError: __assign is not defined This is bubbling up from this line of code: return [...state, { ...action.payload, success:…
Ian Haggerty
  • 1,741
  • 16
  • 22
7
votes
1 answer

How to get the Activity in nativescript plugin?

I have some trouble when develop the nativescript.I don't know how to get the Activity in nativescript plugin? In android: import android.app.Activity; import com.alipay.sdk.app.PayTask; public Alipay(Activity activity) { this.activity =…
dingyucong
  • 75
  • 1
  • 5
7
votes
3 answers

position element at center of absolute layout in nativescript

I have a list of objects coming from api which I am showing in a ListView. For each item in the list, i am rendering an absolute layout. If the item has photo I show it full stretched so that it appear as a background image for that item in the…
akniazi
  • 732
  • 2
  • 7
  • 23
7
votes
4 answers

NativeScript handling back button event

I am trying to handle the hardware back button in a NativeScript app. I am using NativeScript version 2.3.0 with Angular. Here is what I have in main.ts file // this import should be first in order to load some required settings (like globals and…
krv
  • 2,830
  • 7
  • 40
  • 79
7
votes
1 answer

Correct way to dismiss keyboard from a TextView in Nativescript

I have the following TextView: I'm trying to correctly implement it so that: when the user presses "Done", the keyboard…
Dailyrox
  • 427
  • 2
  • 4
  • 14
7
votes
3 answers

Nativescript ListView showing only one item

I ma following a course on pluralsight and I have encountered an odd problem. My list view is only showing the first element and nothing else. This is odd and i've used list views without problem before so I'm not sure where the error is coming…
xerotolerant
  • 1,955
  • 4
  • 21
  • 39