From d391c22c5406edb0290c0955a0cf607d1bcf0cdf Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 28 Jan 2016 13:46:46 +0000 Subject: [PATCH] update website --- docs/scrollview.html | 7 +++++-- docs/webview.html | 9 ++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/scrollview.html b/docs/scrollview.html index f7ab5f04b4c..a8f13e5a7b6 100644 --- a/docs/scrollview.html +++ b/docs/scrollview.html @@ -54,8 +54,11 @@ content is smaller than the scroll view bounds; when the content is larger than the scroll view, this property has no effect. The default value is false.

ioscontentInset {top: number, left: number, bottom: number, right: number} #

The amount by which the scroll view content is inset from the edges of the scroll view. Defaults to {0, 0, 0, 0}.

ioscontentOffset PointPropType #

Used to manually set the starting scroll offset. -The default value is {x: 0, y: 0}.

iosdecelerationRate number #

A floating-point number that determines how quickly the scroll view -decelerates after the user lifts their finger. Reasonable choices include +The default value is {x: 0, y: 0}.

iosdecelerationRate enum('fast', 'normal'), number #

A floating-point number that determines how quickly the scroll view +decelerates after the user lifts their finger. You may also use string +shortcuts "normal" and "fast" which match the underlying iOS settings +for UIScrollViewDecelerationRateNormal and +UIScrollViewDecelerationRateFast respectively. - Normal: 0.998 (the default) - Fast: 0.9

iosdirectionalLockEnabled bool #

When true, the ScrollView will try to lock to only vertical or horizontal scrolling while dragging. The default value is false.

iosindicatorStyle enum('default', 'black', 'white') #

The style of the scroll indicators. diff --git a/docs/webview.html b/docs/webview.html index 754d2dfeadc..08e9608b424 100644 --- a/docs/webview.html +++ b/docs/webview.html @@ -3,7 +3,13 @@ controller. default value false NOTE : "In order for video to play inline, not only does this property need to be set to true, but the video element in the HTML -document must also include the webkit-playsinline attribute."

iosbounces bool #

iosonShouldStartLoadWithRequest function #

Allows custom handling of any webview requests by a JS handler. Return true +document must also include the webkit-playsinline attribute."

iosbounces bool #

iosdecelerationRate ScrollView.propTypes.decelerationRate #

A floating-point number that determines how quickly the scroll view +decelerates after the user lifts their finger. You may also use string +shortcuts "normal" and "fast" which match the underlying iOS settings +for UIScrollViewDecelerationRateNormal and +UIScrollViewDecelerationRateFast respectively. + - Normal: 0.998 + - Fast: 0.9 (the default for iOS WebView)

iosonShouldStartLoadWithRequest function #

Allows custom handling of any webview requests by a JS handler. Return true or false from this method to continue loading the request.

iosscalesPageToFit bool #

Sets whether the webpage scales to fit the view and the user can change the scale.

iosscrollEnabled bool #

Edit on GitHubExamples #

'use strict'; var React = require('react-native'); @@ -87,6 +93,7 @@ or false from this method to continue loading the request.

={this.state.url} javaScriptEnabled={true} domStorageEnabled={true} + decelerationRate="normal" onNavigationStateChange={this.onNavigationStateChange} onShouldStartLoadWithRequest={this.onShouldStartLoadWithRequest} startInLoadingState={true}