Deploy website

Deploy website version based on 02023d54ab92f96c1cf3c7dba9c11f11cb39dabe
This commit is contained in:
Website Deployment Script
2020-03-20 13:51:26 +00:00
parent 29bd79b61e
commit ead287d472
725 changed files with 3100 additions and 3080 deletions
+2 -2
View File
@@ -140,8 +140,8 @@ BigButton.android.js
<h2><a class="anchor" aria-hidden="true" id="native-specific-extensions-ie-sharing-code-with-nodejs-and-web"></a><a href="#native-specific-extensions-ie-sharing-code-with-nodejs-and-web" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Native-specific extensions (i.e. sharing code with NodeJS and Web)</h2>
<p>You can also use the <code>.native.js</code> extension when a module needs to be shared between NodeJS/Web and React Native but it has no Android/iOS differences. This is specially useful for projects that has common code shared among React Native and ReactJS.</p>
<p>For example, say you have the following files in your project:</p>
<pre><code class="hljs css language-sh">Container.js <span class="hljs-comment"># picked up by Webpack, Rollup or any other Web bundler</span>
Container.native.js <span class="hljs-comment"># picked up by the React Native bundler for both Android and iOS (Metro)</span>
<pre><code class="hljs css language-sh">Container.js <span class="token comment"># picked up by Webpack, Rollup or any other Web bundler</span>
Container.native.js <span class="token comment"># picked up by the React Native bundler for both Android and iOS (Metro)</span>
</code></pre>
<p>You can still require it without the <code>.native</code> extension, as follows:</p>
<pre><code class="hljs css language-jsx"><span class="token keyword">import</span> Container <span class="token keyword">from</span> <span class="token string">'./Container'</span><span class="token punctuation">;</span>