Questions tagged [angular-nativescript]
61 questions
0
votes
1 answer
Nativescript Angular reusable component not triggering (tap) function call on IOS build
I have an NS-Angular app that already has an android app and everything works fine.
The issue here is with a reusable button component the angular way like:

Prajil Shrestha
- 124
- 1
- 9
0
votes
1 answer
How to remove speech to text (mic) from Google Keyboard in NativeScript?
I have tried a few options available in the following links.
1. Disable speech to text button (Micro phone) on soft input keyboard in android programmatically
2. How to disable displaying "suggestions" on the Soft Keyboard
doesn't seem to…

Srikanth Alva
- 21
- 5
0
votes
0 answers
I am learning Nativescript, I am stuck in one scenario where i have created Country,State and City List View
This is my component.ts Data
export class HomeComponent implements OnInit {
countries: Array = [
{ id: 0, name: 'India' },
{ id: 1, name: 'Afghanistan' },
{ id: 2, name: 'U.S' }
];
selectedCountry = -1;
…

Karan Dodwani
- 31
- 1
- 5
0
votes
0 answers
Angular Nativescript code sharing project wont read ttf, otf font or declaration
I have a problem with font declaration and usage on native script angular project.
The structure is as below:
The arbeit font is working fine, but the oc-format-sans is not getting recognized/loaded.
Declared like this for android only:
…

Prajil Shrestha
- 124
- 1
- 9
0
votes
0 answers
Angular Native-script, Component is part of the declaration of 2 modules even though declared in one place only
So this persistent problem in Angular Nativesript environment where I have declared component in only auth.module.tns.ts files.
The error:
Error: Type LoginComponent is part of the declarations of 2 modules: AuthModule and AuthModule! Please…

Prajil Shrestha
- 124
- 1
- 9
0
votes
0 answers
how to set off an alarm or alert with alert sound lasting until user presses a button in native script
I've just started learning Native script and I'm working on a project that checks a price for a certain item and alerts the user if the price has reached the set amount. I want the alert to last until the user takes an action to turn it off similar…

sam rafiei
- 51
- 1
- 6
0
votes
1 answer
Are Module-Component structure and lazy loading the same in Angular Nativescript project in comparison to Angular projects?
So, I want to structure this project i am working with Angular and Nativescript. The probelem is i cant find any guide for a base flexible and robust architecture. Is it fine to follow the one that angular provides?

Prajil Shrestha
- 124
- 1
- 9
0
votes
1 answer
Http requests fails only while releasing Android build APK but works while debugging
All the API calls are working in debugging but when I am creating a build apk file, request not even get called in build apk. The server has an SSL certificate still it get failed
0
votes
2 answers
Nativescript cannot read JSON file
I have the following json:
.../src/app/assets/i18n/en.json
{
"TEST": "This is a some test data in a json file"
}
I have the following code:
const folderName = "assets/i18n/en.json";
knownFolders.currentApp().getFile(folderName).readText().then(a…

ForestG
- 17,538
- 14
- 52
- 86
0
votes
1 answer
Listview disable android ripple
Is possible to disable android ripple effect on ListView?
I have disabled it on iOS by this function:
onItemLoading(args: any) {
if (ios) {
const cell = args.ios;
cell.selectionStyle =…

Roman Šimr
- 81
- 1
- 10
0
votes
0 answers
Installing NativeScript Windows Setup windows 32 Bits
I'm trying to install NativeScript on windows 7 32 bits, so I followed this: https://docs.nativescript.org/angular/start/ns-setup-win#nativescript-advanced-setup-windows
so steps 1, 2, 3, 4 and 6 work! but the setup 6 doesn't work, it shows this…

Gerson
- 67
- 9
0
votes
1 answer
Where to find app.js file in angular nativescript?
I'm trying to create a nativescript app with angular and after creating the app with node I can't seem to find the app.js / server.js file
Where can I find it or do i need to create it myself?

Raymond Riekert
- 39
- 1
- 9
0
votes
0 answers
Nativescript + angular : blank page on tab view after upgrading to 8.2.0 without any error
Environment
CLI: 6.0.3
Cross-platform modules:6.0.0
Android Runtime:6.0.2
iOS Runtime:6.0.2
Plugin(s):
NativeScript-Angular:8.2.0
Angular:8.2.0
After upgrading to the latest cli and nativescript-angular I get a blank white screen when I start the…

Hamza AlQabali
- 101
- 1
- 2
- 7
0
votes
2 answers
How to change default Nativescript opening page in Angular+Nativescript application?
I am working on the Nativescript+Angular application and I am done with my assignment but now I want to change the default opening page image of NativeScript app.
I have tried but unable to find that. Please let me know if anyone knows.
Please see…

Nectar Mind
- 145
- 2
- 17
0
votes
1 answer
Nativescript Code Sharing: dealing with class variables
Supposedly I have a web component and a nativescript component. Let's say
app.component.ts.
Now, web component supposed to have different class variables than nativescript component. How am I supposed to have a 1 component class that will compile…

iamjc015
- 2,127
- 6
- 25
- 61