mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
@@ -62,19 +62,17 @@ var styles = {
|
||||
</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/next/view#props">View props...</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#initialpage"><code>initialPage</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#keyboarddismissmode"><code>keyboardDismissMode</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpagescroll"><code>onPageScroll</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpagescrollstatechanged"><code>onPageScrollStateChanged</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpageselected"><code>onPageSelected</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#pagemargin"><code>pageMargin</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#peekenabled"><code>peekEnabled</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#scrollenabled"><code>scrollEnabled</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#setpage"><code>setPage</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#setpagewithoutanimation"><code>setPageWithoutAnimation</code></a></li>
|
||||
<li><p><a href="/react-native/docs/next/view#props">View props...</a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#initialpage"><code>initialPage</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#keyboarddismissmode"><code>keyboardDismissMode</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpagescroll"><code>onPageScroll</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpagescrollstatechanged"><code>onPageScrollStateChanged</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpageselected"><code>onPageSelected</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#pagemargin"><code>pageMargin</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#peekenabled"><code>peekEnabled</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#scrollenabled"><code>scrollEnabled</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#setpage"><code>setPage</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#setpagewithoutanimation"><code>setPageWithoutAnimation</code></a></p></li>
|
||||
</ul>
|
||||
<h3><a class="anchor" aria-hidden="true" id="type-definitions"></a><a href="#type-definitions" 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>Type Definitions</h3>
|
||||
<ul>
|
||||
@@ -110,10 +108,10 @@ var styles = {
|
||||
</table>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="onpagescroll"></a><a href="#onpagescroll" 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><code>onPageScroll</code></h3>
|
||||
<p>Executed when transitioning between pages (ether because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<p>Executed when transitioning between pages (either because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<ul>
|
||||
<li>position - index of first page from the left that is currently visible</li>
|
||||
<li>offset - value from range [0,1) describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
<li>offset - value from range [0, 1] describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -129,7 +127,7 @@ var styles = {
|
||||
<ul>
|
||||
<li>idle, meaning there is no interaction with the page scroller happening at the time</li>
|
||||
<li>dragging, meaning there is currently an interaction with the page scroller</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing it's closing or opening animation</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing its closing or opening animation</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
@@ -62,19 +62,17 @@ var styles = {
|
||||
</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/next/view#props">View props...</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#initialpage"><code>initialPage</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#keyboarddismissmode"><code>keyboardDismissMode</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpagescroll"><code>onPageScroll</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpagescrollstatechanged"><code>onPageScrollStateChanged</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#onpageselected"><code>onPageSelected</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#pagemargin"><code>pageMargin</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#peekenabled"><code>peekEnabled</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#scrollenabled"><code>scrollEnabled</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#setpage"><code>setPage</code></a></li>
|
||||
<li><a href="/react-native/docs/next/viewpagerandroid#setpagewithoutanimation"><code>setPageWithoutAnimation</code></a></li>
|
||||
<li><p><a href="/react-native/docs/next/view#props">View props...</a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#initialpage"><code>initialPage</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#keyboarddismissmode"><code>keyboardDismissMode</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpagescroll"><code>onPageScroll</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpagescrollstatechanged"><code>onPageScrollStateChanged</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#onpageselected"><code>onPageSelected</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#pagemargin"><code>pageMargin</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#peekenabled"><code>peekEnabled</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#scrollenabled"><code>scrollEnabled</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#setpage"><code>setPage</code></a></p></li>
|
||||
<li><p><a href="/react-native/docs/next/viewpagerandroid#setpagewithoutanimation"><code>setPageWithoutAnimation</code></a></p></li>
|
||||
</ul>
|
||||
<h3><a class="anchor" aria-hidden="true" id="type-definitions"></a><a href="#type-definitions" 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>Type Definitions</h3>
|
||||
<ul>
|
||||
@@ -110,10 +108,10 @@ var styles = {
|
||||
</table>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="onpagescroll"></a><a href="#onpagescroll" 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><code>onPageScroll</code></h3>
|
||||
<p>Executed when transitioning between pages (ether because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<p>Executed when transitioning between pages (either because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<ul>
|
||||
<li>position - index of first page from the left that is currently visible</li>
|
||||
<li>offset - value from range [0,1) describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
<li>offset - value from range [0, 1] describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -129,7 +127,7 @@ var styles = {
|
||||
<ul>
|
||||
<li>idle, meaning there is no interaction with the page scroller happening at the time</li>
|
||||
<li>dragging, meaning there is currently an interaction with the page scroller</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing it's closing or opening animation</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing its closing or opening animation</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
@@ -110,10 +110,10 @@ var styles = {
|
||||
</table>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="onpagescroll"></a><a href="#onpagescroll" 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><code>onPageScroll</code></h3>
|
||||
<p>Executed when transitioning between pages (ether because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<p>Executed when transitioning between pages (either because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<ul>
|
||||
<li>position - index of first page from the left that is currently visible</li>
|
||||
<li>offset - value from range [0,1) describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
<li>offset - value from range [0, 1] describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -129,7 +129,7 @@ var styles = {
|
||||
<ul>
|
||||
<li>idle, meaning there is no interaction with the page scroller happening at the time</li>
|
||||
<li>dragging, meaning there is currently an interaction with the page scroller</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing it's closing or opening animation</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing its closing or opening animation</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
@@ -110,10 +110,10 @@ var styles = {
|
||||
</table>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="onpagescroll"></a><a href="#onpagescroll" 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><code>onPageScroll</code></h3>
|
||||
<p>Executed when transitioning between pages (ether because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<p>Executed when transitioning between pages (either because of animation for the requested page change or when user is swiping/dragging between pages) The <code>event.nativeEvent</code> object for this callback will carry following data:</p>
|
||||
<ul>
|
||||
<li>position - index of first page from the left that is currently visible</li>
|
||||
<li>offset - value from range [0,1) describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
<li>offset - value from range [0, 1] describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the next page is visible.</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -129,7 +129,7 @@ var styles = {
|
||||
<ul>
|
||||
<li>idle, meaning there is no interaction with the page scroller happening at the time</li>
|
||||
<li>dragging, meaning there is currently an interaction with the page scroller</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing it's closing or opening animation</li>
|
||||
<li>settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing its closing or opening animation</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user