am using nativescript version 2.5.0.My app is successfully worked in web. but in nativescript it will not get displaying anything.
tns.html
<GridLayout rows="*">
<ListView [items]="views$ | async" (itemTap)="onClickView($event.view.bindingContext)">
<template let-view="item">
<Label [text]="view"></Label>
</template>
</ListView>
</GridLayout>
component.ts
@Component({
moduleId: module.id,
selector: 'sd-list',
templateUrl: 'list.component.html',
styleUrls: ['list.component.css']
})
export class ListComponent implements OnInit {
public views$: Observable<any>;
constructor(private store: Store<IAppState>, private route: ActivatedRoute) {
console.log("Inside listcomonent"); -----> This console is working
this.views$ = store.let(getViews);
this.listType$ = store.let(getListType);
}
}
This is what i have. in my web application the list view is populated with the values. but in case of native script(android) nothing get displaying. what should i do? any help will highly appreciable and helpful.