Skip to content

Commit 071fc19

Browse files
committed
Add pullToRefreshEnabled
1 parent 235cd22 commit 071fc19

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Diff for: README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ _iOS only_
471471

472472
Controls the type of content to load. Available on iOS 13 and later. Defaults to `recommended`, which loads mobile content on iPhone & iPad Mini but desktop content on larger iPads.
473473

474-
More info at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#contentMode>
474+
More at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#contentMode>
475475

476476
#### `dataDetectorTypes: array(DataDetectorTypes.t)`
477477

@@ -632,7 +632,7 @@ _iOS only_
632632

633633
Specifies function to be invoked when the `WebView` is about to download a file.
634634

635-
More info at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#onFileDownload>
635+
More at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#onFileDownload>
636636

637637
#### `onError: WebViewErrorEvent.t => unit`
638638

@@ -673,7 +673,7 @@ Note that this method will not be invoked on hash URL changes (e.g. from https:/
673673
_Android only_
674674
Function that is invoked when the `WebView` process crashes or is killed by the OS.
675675

676-
More info at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#onRenderProcessGone>
676+
More at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#onRenderProcessGone>
677677

678678
#### `onShouldStartLoadWithRequest: Js.t(webViewShouldStartLoadWithRequest) => bool`
679679

@@ -703,6 +703,14 @@ _iOS only_
703703

704704
As the user scrolls, scroll view stops on multiples of the its bounds when `true`, defaults to `false`.
705705

706+
#### `pullToRefreshEnabled: bool`
707+
708+
_iOS only_
709+
710+
Boolean value that determines whether a pull to refresh gesture is available in the `WebView`. The default value is `false`. If `true`, sets `bounces` automatically to `true`.
711+
712+
More at <https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#pullToRefreshEnabled>
713+
706714
#### `renderError: string => React.element`
707715

708716
Specifies a function to be invoked when there is an error.

Diff for: src/ReactNativeWebView.re

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ external make:
225225
~originWhitelist: array(string)=?,
226226
~overScrollMode: [ | `never | `always | `content]=?,
227227
~pagingEnabled: bool=?,
228+
~pullToRefreshEnabled: bool=?,
228229
~renderError: string => React.element=?,
229230
~renderLoading: unit => React.element=?,
230231
~saveFormDataDisabled: bool=?,

0 commit comments

Comments
 (0)