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 358304ca3d8dcc175cb30b49cecef6680d755d34
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ AppRegistry.registerComponent(<span class="hljs-string">'AwesomeProject'</span>,
|
||||
<span class="token operator"><</span><span class="token operator">/</span>Text<span class="token operator">></span>
|
||||
<span class="token operator"><</span><span class="token operator">/</span>View<span class="token operator">></span>
|
||||
</code></pre>
|
||||
<p>You also lose the ability to set up a default font for an entire subtree. The recommended way to use consistent fonts and sizes across your application is to create a component <code>MyAppText</code> that includes them and use this component across your app. You can also use this component to make more specific components like <code>MyAppHeaderText</code> for other kinds of text.</p>
|
||||
<p>You also lose the ability to set up a default font for an entire subtree. Meanwhile, <code>fontFamily</code> only accepts a single font name, which is different from <code>font-family</code> in CSS. The recommended way to use consistent fonts and sizes across your application is to create a component <code>MyAppText</code> that includes them and use this component across your app. You can also use this component to make more specific components like <code>MyAppHeaderText</code> for other kinds of text.</p>
|
||||
<pre><code class="hljs css language-javascript"><span class="token operator"><</span>View<span class="token operator">></span>
|
||||
<span class="token operator"><</span>MyAppText<span class="token operator">></span>
|
||||
Text styled <span class="token keyword">with</span> the <span class="token keyword">default</span> font <span class="token keyword">for</span> the entire application
|
||||
|
||||
@@ -152,7 +152,7 @@ AppRegistry.registerComponent(<span class="hljs-string">'AwesomeProject'</span>,
|
||||
<span class="token operator"><</span><span class="token operator">/</span>Text<span class="token operator">></span>
|
||||
<span class="token operator"><</span><span class="token operator">/</span>View<span class="token operator">></span>
|
||||
</code></pre>
|
||||
<p>You also lose the ability to set up a default font for an entire subtree. The recommended way to use consistent fonts and sizes across your application is to create a component <code>MyAppText</code> that includes them and use this component across your app. You can also use this component to make more specific components like <code>MyAppHeaderText</code> for other kinds of text.</p>
|
||||
<p>You also lose the ability to set up a default font for an entire subtree. Meanwhile, <code>fontFamily</code> only accepts a single font name, which is different from <code>font-family</code> in CSS. The recommended way to use consistent fonts and sizes across your application is to create a component <code>MyAppText</code> that includes them and use this component across your app. You can also use this component to make more specific components like <code>MyAppHeaderText</code> for other kinds of text.</p>
|
||||
<pre><code class="hljs css language-javascript"><span class="token operator"><</span>View<span class="token operator">></span>
|
||||
<span class="token operator"><</span>MyAppText<span class="token operator">></span>
|
||||
Text styled <span class="token keyword">with</span> the <span class="token keyword">default</span> font <span class="token keyword">for</span> the entire application
|
||||
|
||||
Reference in New Issue
Block a user