Deploy website

Deploy website version based on 33aedc3b03df7f984bd330389c73cf66e151b250
This commit is contained in:
Website Deployment Script
2018-08-09 18:37:17 +00:00
parent 4b0bd43cc1
commit b3d02a4d5f
244 changed files with 2534 additions and 2534 deletions
+2 -2
View File
@@ -32,8 +32,8 @@
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/facebook/react-native-website/blob/master/docs/platform-specific-code.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Platform Specific Code</h1></header><article><div><span><p>When building a cross-platform app, you'll want to re-use as much code as possible. Scenarios may arise where it makes sense for the code to be different, for example you may want to implement separate visual components for iOS and Android.</p>
<p>React Native provides two ways to easily organize your code and separate it by platform:</p>
<ul>
<li>Using the <a href="/react-native/docs/0.56/platform-specific-code#platform-module"><code>Platform</code> module</a>.</li>
<li>Using <a href="/react-native/docs/0.56/platform-specific-code#platform-specific-extensions">platform-specific file extensions</a>.</li>
<li>Using the <a href="/react-native/docs/platform-specific-code#platform-module"><code>Platform</code> module</a>.</li>
<li>Using <a href="/react-native/docs/platform-specific-code#platform-specific-extensions">platform-specific file extensions</a>.</li>
</ul>
<p>Certain components may have properties that work on one platform only. All of these props are annotated with <code>@platform</code> and have a small badge next to them on the website.</p>
<h2><a class="anchor" aria-hidden="true" id="platform-module"></a><a href="#platform-module" 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>Platform module</h2>