Nativescript canvas
<p>can anyone tell me how canvas is created in nativescript? I would like something like this</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var canvas = new fabric.Canvas('sheet');
canvas.isDrawingMode = true;
canvas.freeDrawingBrush.width = 30;
canvas.freeDrawingBrush.color = "#000000";</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>#sheet {
    border:1px solid blue;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;canvas id="sheet" width="400" height="400"&gt;&lt;/canvas&gt;</code></pre>
</div>
</div>
</p>

<p>found at <a href="http://jsfiddle.net/B525t/52/" rel="nofollow">http://jsfiddle.net/B525t/52/</a> that works on android and ois.</p>

<p>Thank you</p>