Deploy website

Deploy website version based on 3fdaa91c2c
This commit is contained in:
Website Deployment Script
2018-01-11 23:00:38 +00:00
parent 3fdaa91c2c
commit 53923cbd38
+1 -1
View File
@@ -17,7 +17,7 @@
└── check@<span class="hljs-number">3</span>x<span class="hljs-selector-class">.png</span>
</code></pre>
<p>...and <code>button.js</code> code contains:</p>
<pre><code class="hljs css javascript">&lt;Image source={<span class="hljs-built_in">require</span>(<span class="hljs-string">'./assets/check.png'</span>)} /&gt;
<pre><code class="hljs css javascript">&lt;Image source={<span class="hljs-built_in">require</span>(<span class="hljs-string">'./img/check.png'</span>)} /&gt;
</code></pre>
<p>...the packager will bundle and serve the image corresponding to device's screen density. For example, <code>check@2x.png</code>, will be used on an iPhone 7, while<code>check@3x.png</code> will be used on an iPhone 7 Plus or a Nexus 5. If there is no image matching the screen density, the closest best option will be selected.</p>
<p>On Windows, you might need to restart the packager if you add new images to your project.</p>