mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deploy website
Deploy website version based on a2c2216089627f330c9fe39d78e4cc768bb26e18
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
}
|
||||
});
|
||||
</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>
|
||||
<p>React Native provides two ways to organize your code and separate it by platform:</p>
|
||||
<ul>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user