title: An uncaught Exception occurred on "main" thread
body: <p>While running a nativescript app on Android I am getting the following error:</p>
  
  <pre><code>An uncaught Exception occurred on "main" thread.
  JS: com.tns.NativeScriptException: 
  JS: Calling js method onItemClick failed
  JS: 
  JS: [object Object]
  </code></pre>
  
  <p>tns.html</p>
  
  <pre><code>&lt;ListView [items]="abc$ | async" (itemTap)="onClickRoom($event.view.bindingContext)"&gt;
    &lt;template let-item="item"&gt;
      &lt;Label [text]="item"&gt;&lt;/Label&gt;
    &lt;/template&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>component.ts</p>
  
  <pre><code>onClickRoom(abc: string) {
  this.date = new Date();
  this.eventArray = appSettings.getString('itemsArray') || [];
  this.eventArray.push(this.evntList);
  appSettings.setString("itemsArray", JSON.stringify(this.eventArray));
  }
  </code></pre>
  
  <p>It's running fine on iOS and it happens only on Android. How can I solve this issue? Any help would be really helpful.</p>