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

Nativescript doctor throws warnings and errors

I want to connect my virtual android device to nativescript sidekick. When I open NativeScript Sidekick and click on "Virtual Device Launcher" Button, I get the following error message. [20-03-24 09:50:23.966] Unable to execute avdmanager, ensure…
Andreas
  • 430
  • 5
  • 21
1
vote
1 answer

NativeScript Android SDK Installation Error, "Warning: Could not create settings java.lang.IllegalArgumentException"

I have been trying to fix this error that occurs when following this guide while running this (sudo $ANDROID_HOME/tools/bin/sdkmanager "tools" "emulator" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "extras;android;m2repository"…
Prajil Shrestha
  • 124
  • 1
  • 9
1
vote
2 answers

Open modal within modal in nativescript

When I try to open a modal while I'm already in another modal. I get an error saying: ViewHierarchy: parent is already presenting view controller close the current modal page before showing another one! Here is a playground sample, How can I have…
yukashima huksay
  • 5,834
  • 7
  • 45
  • 78
1
vote
1 answer

How can I open a url for both Angular and Nativescript from one component codebase?

I am building a NativeScript-Angular app which displays a link than needs to open in a new browser on both the web and mobile. For Angular, I can use window.open("http://example.com", "_blank"); - which does not work for NativeScript. For…
1
vote
0 answers

NativeScript audio player in background mode

Is it possible in Native Script to make an audio player in the background and with controllers on the lock screen?
1
vote
1 answer

Nativescript iOS app not running on device

I'm encountering a strange issue and was hoping to get some insight. When I build my Nativescript app on a Mac, and open it in the iOS simulator, it works. When I "prepare" the iOS app and open it in xcode, and run it on a simulator, it works. When…
1
vote
1 answer

How to disable Unknown property horizontal-align warnings?

There are some useless warnings I want to disable but I don't know who is giving this warning. How to determine which plugin is sending problems? horizontal-align: center is supported by nativescript { "resource": "/Login.vue", "owner":…
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
1
vote
1 answer

Save POST response as file in NativeScript

In my NativeScript-Vue app, I make a POST request to my server and receive a binary file. It's a .zip file containing a .db file which I want to copy and initialize with the nativescript-sqlite plugin. I am using axios and the POST response looks…
TomG
  • 538
  • 4
  • 20
1
vote
1 answer

OAuth2 login with Nativescript - Avoiding external browser / webview is possible?

I'm working on a new project with OpenId Connect based security. Being a novice with this technology (and with mobile development too), I wasn't able to find an exact answer to my question. Little introduction to the project: Generated the API…
1
vote
1 answer

Why yarn is warning in every move I made?

When ever I run yarn global add ... or yarn global remove ... it gives warnings such as ... warning "nativescript > marked-terminal@3.1.1" has incorrect peer dependency "marked@^0.4.0 || ^0.5.0". warning "nativescript > nativescript-preview-sdk >…
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
1
vote
1 answer

Can I use white backgrounds while in dark mode in NativeScript apps?

I want to force a white background in my NativeScript application, regardless of the device's theme. However, I haven't found a way to do this. My apps all seem to convert white background colors to dark counterparts when my Android 10 device is in…
Travis Wilson
  • 130
  • 1
  • 8
1
vote
1 answer

nativescript-couchbase-plugin querying

I'm trying to use nativescript-couchbase-plugin. Here is my code: whereArray.push({ property: "type_id", comparison: "equalTo", value: typeId }); return itemsDb.query({ select: [], where: whereArray, order: [{property: "rating",…
AxelPAL
  • 1,047
  • 3
  • 12
  • 19
1
vote
1 answer

Nativescript imagepicker not working in iOS :: not picking up image path?

I am using Nativescript with Angular and have a page where I photograph a receipt or add from gallery and add a couple of text inputs and send to server. The Add from gallery is working fine in Android but not in iOS. Here is the template…
chakotha
  • 85
  • 11
1
vote
2 answers

How to override iOS dark mode style for datepicker

Like you can see the selected value in date picker is white. If I change the date, it won't become visible. This a screenshot of iOS dark mode. Is there a way to override the default styling for that. I tried the following: .date-picker { color:…
Steven
  • 1,404
  • 2
  • 16
  • 39
1
vote
1 answer

Nativescript RadSideDrawer. I don't need back button

I'm trying to make a simple app with Playground (https://play.nativescript.org/). I'm using "RadSideDrawer" as a side menu. I'm satisfied. BUT ... every time I use "RadSideDrawer" and I move from one page to another, inside the "ActionBar" a button…
lapo
  • 13
  • 2
1 2 3
99
100