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

Nested scroll doesn't works in RadAutoCompleteTextView(Nativescript)

In the nativescript application, if we are using the RadAutoCompleteTextView inside the ScrollView and the length of the form goes beyond your screen size, the scroll event of the RadAutoCompleteTextView doesn't work. Check the sample app to…
mohit sharma
  • 620
  • 8
  • 23
1
vote
1 answer

How do i handle errors in nativescript app?

i am done coding my App and i will be publishing soon. Right now, when there is an error in the app, it stops the whole app and shows StackTrace errors. please how can i stop this. i saw a solution relating to this on the nativescript website this…
kunlee
  • 591
  • 1
  • 4
  • 15
1
vote
1 answer

How can I stop Vetur to convert colSpan and rowSpan tags?

I am currently using nativescript-vue , I need colSpan and rowSpan tags to stay as the way it is. rowSpan="2" is turned into rowspan="2" by Vetur code formater. How to disable small case conversion features of Vetur? Prettier does not correct cases…
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
1
vote
0 answers

RadListView pullToRefresh memory leaks

I am building NS and Angular app and I am using RadListView with pullToRefresh enabled. I noticed that after some usage app starts to slow down. After investigation I saw just some elements like images are leaking. Here is memory snapshot after…
1
vote
1 answer

Nativescript-vue: 'admob createBanner error: Error: java.lang.NullPointerException

i'm using the nativescript-admob plugin with nativescript-vue. when i run i get this error : JS: 'admob createBanner error: Error: java.lang.NullPointerException: Attempt to invoke virtual method \'android.content.res.Resources…
aziza
  • 23
  • 3
1
vote
3 answers

How to access JSON file in NativeScript?

hello I am trying to access a JSON file to my nativescrpt project. i tried this let fs = require("tns-core-modules/file-system"); let documents = fs.knownFolders.currentApp(); function GetJsonData(callback) { let filePath =…
Bhavik Kalal
  • 55
  • 1
  • 1
  • 9
1
vote
0 answers

Is push token gets ever updated nativescript-plugin-firebase

I am creating nativescript angular app with push notifications. I cannot find information what heppens with push token when: App is restariting in dev mode i see that token is same - is it similar scenario when user closes and opens installed prod…
1
vote
0 answers

Use NativeScript preview locally behind proxy

I'm attempting to do some local NativeScript development, and preview the app on my phone. I've used this line to create a new sample app: tns create HelloWorld --template tns-template-blank-ng I also installed the NativeScript preview and…
SimpleGeek
  • 211
  • 1
  • 5
1
vote
0 answers

TypeError: this.$refs.scroll.scrollToVerticalOffset is not a function

In my template I have: ... In my methods I have: scrollToBottom() { var scroll = this.$refs.scroll; scroll.scrollToVerticalOffset(scroll.scrollableHeight,…
yukashima huksay
  • 5,834
  • 7
  • 45
  • 78
1
vote
0 answers

When should I submit my firebase push notification token to server?

I use this vuex action for registering my push notification token with my server: async submitPushToken({commit, getters}) { commit('SET_PUSH_TOKEN', await firebase.getCurrentPushToken()); return api .post('/push/register/',…
1
vote
1 answer

Pressing back button on android breaks navigation logic when backstack is empty

I have had similar issues with back button before. In my app I have a login page where the user submits their phone number and then they are taken to a page where they enter the verification code that hey have received. If the user pressed the back…
yukashima huksay
  • 5,834
  • 7
  • 45
  • 78
1
vote
0 answers

Nativescript AbsoluteLayout, parent position relative

I have an AbsoluteLayout that is supposed to open and go over a mdCardview, but it seems that it is trying to squeeze everything inside the cardview. I tried messing with the CSS position tag, but it doesn't change one bit. In the picture below you…
mm da
  • 55
  • 7
1
vote
0 answers

Implementing connection to SignalR using Nativescript + Angular

I’m developing an app using NativeScript + Angular. I need it to have a SignalR connection (SignalR.Net - NOT core) Here is the flow of the app: The app shows a barcode to user1 Using the app on another device, user2 scan this barcode On scan-…
1
vote
0 answers

How to hide label in a listview if text is empty

I'm trying to set the visibility of a Label contained in a ListView. If str01 in empty I need to hide Label page.ts items.push({ str00: var00, str01: var01, str02: var02, str03: var03 }); console.log(items); myViewModel.set("items",…
sMkro
  • 11
  • 2
1
vote
2 answers

NativeScript: how to make a square button with css without hard-coding the width and height

I'm writing an app with Angular 8 and NativeScript 6.4.1. I want to create a perfectly square button. I'm not able to hard-code the height and width. e.g. height: 20px width: 20px is not good for me because my app will run on different devices with…
user1261710
  • 2,539
  • 5
  • 41
  • 72