title: CheckBox in Nativescript (ios and Android)
body: <p>What is the best way to create checkbox in Nativescript with javascript?</p>
  
  <p>I know if I use checkbox it's only for Android, and I have problems with the switches. So I will like use images to reproduce a checkbox.</p>
  
  <p>I have this XML</p>
  
  <pre><code>&lt;ListView items="{{ whishList }}"&gt;
          &lt;ListView.itemTemplate&gt;
              &lt;GridLayout class="listes" columns="auto,*,30"&gt;
                  &lt;Image id="id_check" src="res://selectoff" tap="CheckList"/&gt;
                  &lt;Label id="id_wishlist" text="{{ id_wishlist }}"/&gt;
              &lt;/GridLayout&gt;
          &lt;/ListView.itemTemplate&gt;
      &lt;/ListView&gt; 
  </code></pre>
  
  <p>If I tap the image, I would Like to change the image of item.
  And with JS I need to change the image, but this changes only the last item:</p>
  
  <pre><code>exports.CheckList = function(args){var customControl = args.object;
    customControl.bindingContext = whishList;
    var checkID = customControl.parent.parent.getViewById("id_check");
    checkID.src ="res://selecton";
  }
  </code></pre>