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 1c210b2c68632eccc35bb5bdc632f80da3bc323e
This commit is contained in:
+10
-10
@@ -31,7 +31,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/button.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Button</h1></header><article><div><span><p>A basic button component that should render nicely on any platform. Supports a minimal level of customization.</p>
|
||||
<p><center><img src="/react-native/docs/assets/buttonExample.png"></img></center></p>
|
||||
<p>If this button doesn't look right for your app, you can build your own button using <a href="/react-native/docs/touchableopacity">TouchableOpacity</a> or <a href="/react-native/docs/touchablenativefeedback">TouchableNativeFeedback</a>. For inspiration, look at the <a href="https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js">source code for this button component</a>. Or, take a look at the <a href="https://js.coach/react-native?search=button">wide variety of button components built by the community</a>.</p>
|
||||
<p>If this button doesn't look right for your app, you can build your own button using <a href="/react-native/docs/0.56/touchableopacity">TouchableOpacity</a> or <a href="/react-native/docs/0.56/touchablenativefeedback">TouchableNativeFeedback</a>. For inspiration, look at the <a href="https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js">source code for this button component</a>. Or, take a look at the <a href="https://js.coach/react-native?search=button">wide variety of button components built by the community</a>.</p>
|
||||
<p>Example usage:</p>
|
||||
<pre><code class="hljs">import { <span class="hljs-keyword">Button</span> } from <span class="hljs-string">'react-native'</span><span class="hljs-comment">;</span>
|
||||
...
|
||||
@@ -45,13 +45,13 @@
|
||||
</code></pre>
|
||||
<h3><a class="anchor" aria-hidden="true" id="props"></a><a href="#props" 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>Props</h3>
|
||||
<ul>
|
||||
<li><a href="/react-native/docs/button#onpress"><code>onPress</code></a></li>
|
||||
<li><a href="/react-native/docs/button#title"><code>title</code></a></li>
|
||||
<li><a href="/react-native/docs/button#accessibilitylabel"><code>accessibilityLabel</code></a></li>
|
||||
<li><a href="/react-native/docs/button#color"><code>color</code></a></li>
|
||||
<li><a href="/react-native/docs/button#disabled"><code>disabled</code></a></li>
|
||||
<li><a href="/react-native/docs/button#testid"><code>testID</code></a></li>
|
||||
<li><a href="/react-native/docs/button#hastvpreferredfocus"><code>hasTVPreferredFocus</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#onpress"><code>onPress</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#title"><code>title</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#accessibilitylabel"><code>accessibilityLabel</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#color"><code>color</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#disabled"><code>disabled</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#testid"><code>testID</code></a></li>
|
||||
<li><a href="/react-native/docs/0.56/button#hastvpreferredfocus"><code>hasTVPreferredFocus</code></a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h1><a class="anchor" aria-hidden="true" id="reference"></a><a href="#reference" 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>Reference</h1>
|
||||
@@ -96,7 +96,7 @@
|
||||
<tr><th>Type</th><th>Required</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="/react-native/docs/colors">color</a></td><td>No</td></tr>
|
||||
<tr><td><a href="/react-native/docs/0.56/colors">color</a></td><td>No</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@@ -139,6 +139,6 @@
|
||||
apiKey: '2c98749b4a1e588efec53b2acec13025',
|
||||
indexName: 'react-native-versions',
|
||||
inputSelector: '#search_input_react',
|
||||
algoliaOptions: {"facetFilters":["tags:current"],"hitsPerPage":5}
|
||||
algoliaOptions: {"facetFilters":["tags:0.56"],"hitsPerPage":5}
|
||||
});
|
||||
</script></body></html>
|
||||
Reference in New Issue
Block a user