Deploy website

Deploy website version based on 52a8caed5e
This commit is contained in:
Website Deployment Script
2018-02-12 17:23:26 +00:00
parent 52a8caed5e
commit f80de448a8
6 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -27,9 +27,9 @@
<p>The 'callback' function takes one parameter, the zero-based index of the selected item.</p>
<p>Minimal example:</p>
<pre><code class="hljs">ActionSheetIOS.showActionSheetWithOptions({
options: [<span class="hljs-string">'Remove'</span>, <span class="hljs-string">'Cancel'</span>],
destructiveButtonIndex: <span class="hljs-number">0</span>,
cancelButtonIndex: <span class="hljs-number">1</span>,
options: [<span class="hljs-string">'Cancel'</span>, <span class="hljs-string">'Remove'</span>],
destructiveButtonIndex: <span class="hljs-number">1</span>,
cancelButtonIndex: <span class="hljs-number">0</span>,
},
<span class="hljs-function">(<span class="hljs-params">buttonIndex</span>) =&gt;</span> {
<span class="hljs-keyword">if</span> (buttonIndex === <span class="hljs-number">1</span>) { <span class="hljs-comment">/* destructive action */</span> }
+1 -1
View File
@@ -27,7 +27,7 @@
<p>The 'callback' function takes one parameter, the zero-based index of the selected item.</p>
<p>Minimal example:</p>
<pre><code class="hljs">ActionSheetIOS.showActionSheetWithOptions({
options: [<span class="hljs-string">'Remove'</span>, <span class="hljs-string">'Cancel'</span>],
options: [<span class="hljs-string">'Cancel'</span>, <span class="hljs-string">'Remove'</span>],
destructiveButtonIndex: <span class="hljs-number">1</span>,
cancelButtonIndex: <span class="hljs-number">0</span>,
},
+1 -1
View File
@@ -27,7 +27,7 @@
<p>The 'callback' function takes one parameter, the zero-based index of the selected item.</p>
<p>Minimal example:</p>
<pre><code class="hljs">ActionSheetIOS.showActionSheetWithOptions({
options: [<span class="hljs-string">'Remove'</span>, <span class="hljs-string">'Cancel'</span>],
options: [<span class="hljs-string">'Cancel'</span>, <span class="hljs-string">'Remove'</span>],
destructiveButtonIndex: <span class="hljs-number">1</span>,
cancelButtonIndex: <span class="hljs-number">0</span>,
},
+1 -1
View File
@@ -27,7 +27,7 @@
<p>The 'callback' function takes one parameter, the zero-based index of the selected item.</p>
<p>Minimal example:</p>
<pre><code class="hljs">ActionSheetIOS.showActionSheetWithOptions({
options: [<span class="hljs-string">'Remove'</span>, <span class="hljs-string">'Cancel'</span>],
options: [<span class="hljs-string">'Cancel'</span>, <span class="hljs-string">'Remove'</span>],
destructiveButtonIndex: <span class="hljs-number">1</span>,
cancelButtonIndex: <span class="hljs-number">0</span>,
},
+1 -1
View File
@@ -188,7 +188,7 @@ emulator-<span class="hljs-number">5554</span> offline <span class="hljs-comme
<p><img src="/react-native/docs/assets/XcodeBuildIP.png" alt=""></p>
<p>Open the <strong>Report navigator</strong> tab, select the last <strong>Build</strong> and search for <code>xip.io</code>. The IP address which gets embedded in the app should match your machines IP address plus the domain <code>.xip.io</code> (e.g. 10.0.1.123.xip.io)</p>
<h4><a class="anchor" aria-hidden="true" name="3-network-router-configuration"></a><a href="#3-network-router-configuration" aria-hidden="true" class="hash-link" ><svg 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>3. Network/router configuration</h4>
<p>React Native uses the wildcard DNS service <strong>xip.io</strong> to address your device. Some routers have security features to prevent DNS Servers to resolve anything in the local IP range.</p>
<p>React Native uses the wildcard DNS service <strong>xip.io</strong> to address your device, as Apple ATS prohibits URLs with IP addresses instead of domain names, and developers' networks are often not set up to resolve local hostnames. Some routers have security features to prevent DNS Servers from resolving to anything in the local IP range.</p>
<p>Now check if you are able to resolve the xip.io address, by running <code>nslookup</code>.</p>
<pre><code class="hljs css bash">$ nslookup 10.0.1.123.xip.io
</code></pre>
+2 -2
View File
@@ -7,7 +7,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/vibration.md" target="_blank">Edit</a><h1>Vibration</h1></header><article><div><span><p>The Vibration API is exposed at <code>Vibration.vibrate()</code>. The vibration is asynchronous so this method will return immediately.</p>
<p>There will be no effect on devices that do not support Vibration, eg. the simulator.</p>
<p><strong>Note for Android:</strong> add <code>&lt;uses-permission android:name=&quot;android.permission.VIBRATE&quot;/&gt;</code> to <code>AndroidManifest.xml</code></p>
<p>Since the <strong>vibration duration in iOS is not configurable</strong>, so there are some differences with Android. In Android, if <code>pattern</code> is a number, it specified the vibration duration in ms. If <code>pattern</code> is an array, those odd indices is the vibration duration, while the even one are the separation time.</p>
<p>Since the <strong>vibration duration in iOS is not configurable</strong>, so there are some differences with Android. In Android, if <code>pattern</code> is a number, it specifies the vibration duration in ms. If <code>pattern</code> is an array, those odd indices are the vibration duration, while the even ones are the separation time.</p>
<p>In iOS, invoking <code>vibrate(duration)</code> will just ignore the duration and vibrate for a fixed time. While the <code>pattern</code> array is used to define the duration between each vibration. See below example for more.</p>
<p>Repeatable vibration is also supported, the vibration will repeat with defined pattern until <code>cancel()</code> is called.</p>
<p>Example:</p>
@@ -48,7 +48,7 @@ Vibration.cancel()
<tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
</thead>
<tbody>
<tr><td>pattern</td><td>number or Array<number></td><td>Yes</td><td>Vibration pattern, accept a number or an array of number. Default to 400ms.</td></tr>
<tr><td>pattern</td><td>number or Array<number></td><td>Yes</td><td>Vibration pattern, accept a number or an array of numbers. Default to 400ms.</td></tr>
<tr><td>repeat</td><td>boolean</td><td>No</td><td>Repeat vibration pattern until cancel(), default to false.</td></tr>
</tbody>
</table>