Questions tagged [nativescript-codesharing]

Use this tag for question about the Code Sharing templates provided by the NativeScript @nativescript/schematics package.

In NativeScript, Code Sharing is a way to keep the code for a web and a mobile app in a single place. By using the @nativescript/schematics package created in collaboration by the Angular and NativeScript teams, it is possible to build both web and mobile apps from a single project.

This in turn promotes code sharing between the various versions of an app, meaning that only platform-specific code has to be spitted into separate files.

For further details, please refer to the official NativeScript documentation about Code Sharing that can be found at this link.

16 questions
3
votes
1 answer

How to convert existing NativeScript Angular project to Code Sharing project

All available tutorials talk about converting Angular Web Apps to codesharing Nativescript projects. I want to do the opposite. I almost finished coding the mobile app with Nativescript and now I wanna make the Web App with the code sharing in…
2
votes
0 answers

Creating new code sharing project in Nativescript gives dependency error on tslint and tslint-rules

I'm working on a Nativescript project that needs to be converted into native Android code. I have little Nativescript experience so I'm doing a tutorial on "code sharing". https://docs.nativescript.org/code-sharing/creating-a-new-project I've gone…
2
votes
1 answer

I got an error message when I try to update my nativescript Project

I try to update my native script project when I try to run tns update next I got The error Could not update the project! Reason is: rm: could not remove file (code EBUSY):…
2
votes
0 answers

tsconfig files are ignored in Nativescript code sharing project?

I have a Nativescript code sharing project. Modules in files with tns.ts extension cannot be resolved by typescript. I get the following message. I think this happens because all tns.ts, android.ts and ios.ts files are excluded in…
zarax
  • 871
  • 1
  • 10
  • 30
2
votes
0 answers

Can we use ionic 4 web component in NativeScript web implementation?

Ionic 4 uses web component. Can we use those ionic4 web component in Nativescript web implementation??? I know that i have to use native script components for android and ios. But here asked for web code sharing where i would like to use ionic 4…
2
votes
2 answers

NativeScript + Angular: Code Sharing Project

I followed the Nativescript steps for creating a new code sharing project here and I would like to use sass. I tried both for ones that have the NatievScript theme as well as the one that does not: ng new -c=@nativescript/schematics no-theme-project…
1
vote
2 answers

Cannot Install Angular Material in the code sharing project of Nativescript

I am building a web app and mobile app with Angular and Native Script. I wanted to use the Angular Material Library for the Web App along with the code sharing project. After installing Angular, I ran the command npm i -g @nativescript/schematics to…
1
vote
1 answer

NativeScript & Angular Code Sharing + Lazy Loaded Module Paths

I have a NativeScript/Angular application that uses code sharing. To make my project more organized, I have created a core folder that contains a sub-folder for routing: Routes are defined in app.common.ts: export const appRoutes: Routes = [ {…
1
vote
2 answers

Angular + Nativescript Code Sharing Project Remove Action Bar

My project is using the Angular + Nativescript code sharing project to build for both web as well as mobile for Android and IOS. The problem is trying to remove the Action Bar for the entire application. I have read a few posts on this issue however…
1
vote
2 answers

NativeScript, Code Sharing and different environments

Note: this is not a dupe of this or this other question. Read on: this question is specific to the Code-Sharing template. I am doing some pretty basic experiments with NativeScript, Angular and the code sharing templates (see:…
0
votes
0 answers

Discover the function to hide App Script Code in Google Sheet (Extension Menu)

Good day. I would like to seek your help about some of the features of Appscripts. Is there any feature to hide the appscript code that is connected with Google Sheet ? e.g if the Apps Script extension can be hidden if it detects that the current…
0
votes
1 answer

Why is a .tns file being imported when running "ng test" in this NativeScript Code-Sharing project?

I have a NativeScript Code-Sharing project. I wish to use Karma unit testing against the web version using ng test. This fails due to a .tns version of a service being wrongly imported when building the tests. Following are steps to recreate the…
don
  • 1,497
  • 1
  • 13
  • 27
0
votes
0 answers

Nativescript Responsive @proplugin/nativescript-platform-css not triggering repaint

I am not quite sure that the title is the appropriate, because I don´t know whether 'repaint' is correct. Nevertheless I think is clear what it means. I am using the plugin '@proplugin/nativescript-platform-css' and followed Tiago's Alves excellent…
0
votes
1 answer

how to solve below native script code sharing app creation error?

i am beginner to nativescript and i am getting the error while creating the nativescript angular code sharing new app using CLI i am trying ng new -c=@nativescript/schematics ns-oys --shared --style=scss command to create new application. gyp verb…
0
votes
1 answer

Angular + Nativescript Code Sharing Project Debugging

I am looking for a way to run the application in debug mode. The nativescript client docs say to use tns debug android as well as tns debug android --emulator' for emulator however I cannot get this to work. The applciation is a Nativescript +…
1
2