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 Angular modal view border radius not working

I am trying to create a modal and have round edges on the modal, but the problem is with the modal container which I cannot seem to access. Modal Wrapper:
1
vote
2 answers

How do i get textfield value in nativescript

i'm trying to get the text from my textfield in nativescript core. let textField = args.object; const yourSearch = textField.getViewById("requiredSkill").text; the error i get is : cannot read property 'text' of undefined please help
kunlee
  • 591
  • 1
  • 4
  • 15
1
vote
2 answers

NativeScript - how to use SASS variables all over the scss in the app?

I'm building an app with NativeScript 6.4.1 and Angular 8. I want to use SASS with it because I like the features that come with SASS such as variable names. My graphic designer has provided a number of colors that I will use app-wide on different…
user1261710
  • 2,539
  • 5
  • 41
  • 72
1
vote
1 answer

nativescript wait for request until vuex complete request

I have page Login.vue and I am using a strategy if the user already logged in then go to Home Component else stay same My Code mounted() { this.checkAlreadyLoggedIn(); }, methods: { async checkAlreadyLoggedIn() { this.busy = true; await…
sid heart
  • 1,140
  • 1
  • 9
  • 38
1
vote
1 answer

Nativescript vue navigateTo outside tab

I'm new to Nativescript Vue. I have Login page and then page with BottomNavigation tabs. When I try to logout from Profile Tab I'm not able to navigateTo login page. It opens login page inside the tab. On app load it opens Login. When user login he…
general666
  • 1,001
  • 2
  • 16
  • 31
1
vote
0 answers

Firebase push notification: this.router.navigate doesn't do anything when the app was in background (not stopped, just closed)

I am making an app with nativescript and firebase. Recently i found a bug and after passing many hours on google to find a solution, I'm quite desperate. I use push notifications and in the firebase onMessageReceivedCallback function, I navigate to…
user13040765
1
vote
1 answer

Nativescript lock font-size, prevent system scaling

Is there a way to prevent android system scaling of font size? Found one typescript solution, but can't make it work. Probably because i don't understand typescript good enough.
1
vote
1 answer

Nativescript android shadows workaround

I need some nice soft shadows. Android elevation system seams quite limited in NativeScript, or did i missed something? I need to have some more control, shadow opacity and spread radius especially. Or if there is no easy way, could you please…
1
vote
1 answer

NativeScript ./gradlew failed with exit code 1

Problem On Windows Subsystem Linux (WSL), during tns run android command: A problem was found with the configuration of task ':app:signingConfigWriterDebug'. File specified for property 'signingConfig.storeFile' does not exist. ./gradlew failed…
1
vote
0 answers

NativeScript & SocketIO: Can't find variable: SocketManager

I'm trying to integrate Backendless JS-SDK into the NativeScript application. The JS-SDK is dependent on socket.io.client module which is not supported in the NS environment. So, the first problem with the socket.io.client module I've solved by…
1
vote
1 answer

Nativescript-Vue Issue with Panning Elements around

So I am building a photo group creator in Nativescript-vue. I have the pan working and the view is rendering correctly. But my issue is when a user starts to pan the image outside the container it's in, the image goes 'behind' the container. And I…
Baron860
  • 127
  • 1
  • 5
1
vote
3 answers

NativeScript-ui-autocomplete undefined property

Probably a dumb question but I'm trying to get remote data to use in nativescript-ui-autocomplete but I get the following error ERROR TypeError: Cannot set property 'loadSuggestionsAsync' of undefined The code is very similar to the example at…
1
vote
0 answers

(Nativescript + Google Maps SDK) Polyline gradient color

I'm developing an application over nativescript + vuejs that uses google maps sdk. The main behavior of the app includes draw a route between two geo-points. I'm wondering, how can I draw that polyline with a gradient? The function that renederizes…
1
vote
1 answer

Nativescript Composite components

Criei um component com estilo .SCSS porem ele não aplica o estilo. precisar ser especificamente .css o aquivo de estilo? (English translation) I created a component with .SCSS style but it does not apply the style. need to be specifically .css…
1
vote
2 answers

NativeScript iOS Alert Dialog Box Button Color

Have a funny issue going on and no idea where to start. I have an iOS app that's built with Nativescript & Vue and while in dark mode the button colors in dialogs are off. Sometimes they are a bright blue (which is normal and what I want), but most…
SonOfAFitz
  • 15
  • 1
  • 5