Commit Graph

203 Commits

Author SHA1 Message Date
Thibault Malbranche 8ec7c16e5c Merge branch 'master' into pr/152 2019-01-22 19:14:39 +01:00
allcontributors[bot] 0fdd51de0e chore(readme): add YangXiaomei as a contributor (#268)
Adds @YangXiaomei as a contributor for code, doc.

This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/265#issuecomment-456327682)
2019-01-22 11:15:22 +01:00
semantic-release-bot 1f80927c38 chore(release): 3.2.0 [skip ci]
# [3.2.0](https://github.com/react-native-community/react-native-webview/compare/v3.1.3...v3.2.0) (2019-01-22)

### Features

* **android props:** Add `androidHardwareAccelerationDisabled` prop ([#265](https://github.com/react-native-community/react-native-webview/issues/265)) ([d3fc5e6](https://github.com/react-native-community/react-native-webview/commit/d3fc5e6))
2019-01-22 09:22:43 +00:00
Margaret d3fc5e6cde feat(android props): Add `androidHardwareAccelerationDisabled` prop (#265)
* add test code for disable hardware acceleration

* add interface to disable android hardware acceleration

* Update index.d.ts
2019-01-22 10:21:10 +01:00
Thibault Malbranche 05f20862d6
Update README.md 2019-01-21 17:09:44 +01:00
Michael Diarmid 665c80239c
Merge branch 'master' into master 2019-01-21 07:17:00 +00:00
allcontributors[bot] ac59610f55 chore(readme): add smathson as a contributor (#258)
Adds @smathson as a contributor for code, doc.

This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/203#issuecomment-455618880)
2019-01-18 18:09:24 +01:00
allcontributors[bot] 73ff31f0d9 chore(readme): add Salakar as a contributor (#257)
Adds @Salakar as a contributor for code, review, ideas, tool.

This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/164#issuecomment-455618092)
2019-01-18 18:07:26 +01:00
allcontributors[bot] 9a89a5dc4e chore(readme): add andreipfeiffer as a contributor (#256)
* docs: update README.md

* docs: update .all-contributorsrc
2019-01-18 18:04:36 +01:00
Thibault Malbranche c06e25b437
Update .all-contributorsrc 2019-01-18 18:02:26 +01:00
allcontributors[bot] 44a63c29cb chore(readme): add jamonholmgren as a contributor (#255)
* docs: update README.md

* docs: update .all-contributorsrc

* Update .all-contributorsrc
2019-01-18 17:56:34 +01:00
allcontributors[bot] 93a8928ce0 chore(readme): Setup all-contributors (#254)
Adds @titozzz as a contributor for code, ideas, review, maintenance, test, doc, infra.

This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/253#issuecomment-455609852)
2019-01-18 17:48:06 +01:00
semantic-release-bot 2e7960b19d chore(release): 3.1.3 [skip ci]
## [3.1.3](https://github.com/react-native-community/react-native-webview/compare/v3.1.2...v3.1.3) (2019-01-18)

### Bug Fixes

* **gradle:** Add support library as a dependency ([#253](https://github.com/react-native-community/react-native-webview/issues/253)) ([5180033](https://github.com/react-native-community/react-native-webview/commit/5180033)), closes [#174](https://github.com/react-native-community/react-native-webview/issues/174) [#184](https://github.com/react-native-community/react-native-webview/issues/184) [#245](https://github.com/react-native-community/react-native-webview/issues/245)
2019-01-18 15:42:57 +00:00
Thibault Malbranche 518003392a
fix(gradle): Add support library as a dependency (#253)
fixes #174 
fixes #184 
fixes #245
2019-01-18 16:41:52 +01:00
Roy Zheng 245120df0c Fix typo in Reference.md (#252) 2019-01-18 02:26:20 +01:00
semantic-release-bot cf039a550b chore(release): 3.1.2 [skip ci]
## [3.1.2](https://github.com/react-native-community/react-native-webview/compare/v3.1.1...v3.1.2) (2019-01-11)

### Bug Fixes

* **WKWebview:** Update webview property when allowsBackForwardNavigationGestures prop changes ([#173](https://github.com/react-native-community/react-native-webview/issues/173)) ([4bc1dc2](https://github.com/react-native-community/react-native-webview/commit/4bc1dc2))
2019-01-11 18:55:24 +00:00
Chet Corcos 4bc1dc20fd fix(WKWebview): Update webview property when allowsBackForwardNavigationGestures prop changes (#173) 2019-01-11 19:53:55 +01:00
semantic-release-bot ac406bf66f chore(release): 3.1.1 [skip ci]
## [3.1.1](https://github.com/react-native-community/react-native-webview/compare/v3.1.0...v3.1.1) (2019-01-11)

### Bug Fixes

* **WKWebView:** Add "Frame load interrupted" error handling for OAuth ([#147](https://github.com/react-native-community/react-native-webview/issues/147)) ([6f61224](https://github.com/react-native-community/react-native-webview/commit/6f61224))
2019-01-11 14:03:17 +00:00
José Luis Pereira 6f612242fe fix(WKWebView): Add "Frame load interrupted" error handling for OAuth (#147) 2019-01-11 15:01:49 +01:00
semantic-release-bot c9a777bdfb chore(release): 3.1.0 [skip ci]
# [3.1.0](https://github.com/react-native-community/react-native-webview/compare/v3.0.3...v3.1.0) (2019-01-11)

### Features

* **WKWebview:** Add incognito prop to iOS WKWebview ([62f871c](https://github.com/react-native-community/react-native-webview/commit/62f871c))
2019-01-11 14:00:30 +00:00
José Luis Pereira 62f871c186 feat(WKWebview): Add incognito prop to iOS WKWebview
Allows the webview to be opened with an ephemeral data storage.
2019-01-11 14:59:03 +01:00
semantic-release-bot 6d64db99ec chore(release): 3.0.3 [skip ci]
## [3.0.3](https://github.com/react-native-community/react-native-webview/compare/v3.0.2...v3.0.3) (2019-01-11)

### Bug Fixes

* **android:** Blank screen due to missing super() call in RNCWebViewManager.java ([#241](https://github.com/react-native-community/react-native-webview/issues/241)) ([4e1d113](https://github.com/react-native-community/react-native-webview/commit/4e1d113)), closes [#240](https://github.com/react-native-community/react-native-webview/issues/240) [#224](https://github.com/react-native-community/react-native-webview/issues/224)
2019-01-11 09:46:34 +00:00
Thibault Malbranche 4e1d113c70
fix(android): Blank screen due to missing super() call in RNCWebViewManager.java (#241)
fixes #240 #224
2019-01-11 10:44:42 +01:00
semantic-release-bot 09a9e57b71 chore(release): 3.0.2 [skip ci]
## [3.0.2](https://github.com/react-native-community/react-native-webview/compare/v3.0.1...v3.0.2) (2019-01-10)

### Bug Fixes

* **android:** replace deprecated `WebView.PictureListener`->`onContentSizeChange` impl ([#164](https://github.com/react-native-community/react-native-webview/issues/164)) ([9014c4c](https://github.com/react-native-community/react-native-webview/commit/9014c4c))
2019-01-10 10:39:14 +00:00
Michael Diarmid 9014c4cac0 fix(android): replace deprecated `WebView.PictureListener`->`onContentSizeChange` impl (#164)
* [android] replace deprecated `WebView.PictureListener` onSizeChanged implementation

* [android] use pre-provided w/h values
2019-01-10 11:38:05 +01:00
semantic-release-bot 028e3f8512 chore(release): 3.0.1 [skip ci]
## [3.0.1](https://github.com/react-native-community/react-native-webview/compare/v3.0.0...v3.0.1) (2019-01-10)

### Bug Fixes

* **android:** cleanup `build.gradle` & fix [#218](https://github.com/react-native-community/react-native-webview/issues/218) ([#238](https://github.com/react-native-community/react-native-webview/issues/238)) ([24ec4f7](https://github.com/react-native-community/react-native-webview/commit/24ec4f7))
2019-01-10 10:25:22 +00:00
Michael Diarmid 24ec4f752c fix(android): cleanup `build.gradle` & fix #218 (#238)
This changes the following:
 - Fixes #218 
 - Removed unused Fabric Maven config
 - Versions now correctly checking `rootProject.ext.X` instead of `rootProject.X` to match behaviour from all other libs (RNFB needs changing as well 🙈)
 - Swapped `implementation` for `api` for react native sources - only used to build.


![image](https://user-images.githubusercontent.com/5347038/50959941-1af23980-14bc-11e9-8677-e60f3ee744e7.png)
![image](https://user-images.githubusercontent.com/5347038/50959955-22b1de00-14bc-11e9-8afa-d1abbba46a64.png)

cc @terrytianliang
2019-01-10 11:23:46 +01:00
semantic-release-bot f64f526376 chore(release): 3.0.0 [skip ci]
# [3.0.0](https://github.com/react-native-community/react-native-webview/compare/v2.15.0...v3.0.0) (2019-01-07)

### Features

* **WKWebview:** Add shared process pool so cookies and localStorage are shared across webviews in iOS ([#138](https://github.com/react-native-community/react-native-webview/issues/138)) ([afadc62](https://github.com/react-native-community/react-native-webview/commit/afadc62)), closes [#68](https://github.com/react-native-community/react-native-webview/issues/68)

### BREAKING CHANGES

* **WKWebview:** useSharedProcessPool prop is set to true by default. If you want the old behavior, please use useSharedProcessPool={false}
2019-01-07 14:20:36 +00:00
kylemantesso afadc62ada feat(WKWebview): Add shared process pool so cookies and localStorage are shared across webviews in iOS (#138)
* fix(WKWebview): [iOS] Add shared process pool so cookies and localStorage are shared across webviews (#68)

* Add optional shared process pool

BREAKING CHANGE: useSharedProcessPool prop is set to true by default. If you want the old behavior, please use useSharedProcessPool={false}
2019-01-07 15:19:32 +01:00
semantic-release-bot 335792ce4c chore(release): 2.15.0 [skip ci]
# [2.15.0](https://github.com/react-native-community/react-native-webview/compare/v2.14.3...v2.15.0) (2019-01-07)

### Features

* **Android Webview:** Add file download support for Android ([#203](https://github.com/react-native-community/react-native-webview/issues/203)) ([2114a9b](https://github.com/react-native-community/react-native-webview/commit/2114a9b)), closes [#80](https://github.com/react-native-community/react-native-webview/issues/80)
2019-01-07 14:04:31 +00:00
Scott Mathson 2114a9b327 feat(Android Webview): Add file download support for Android (#203)
Addresses #80.

Caveat: I am not an Android developer. This code comes from a fork of the original RN WebView that we have been using in production for some time, so all credit goes to @Oblongmana: https://github.com/Oblongmana/react-native-webview-file-upload-android.

Setting up a DownloadManager for the WebView is pretty straightforward, as is adding any known cookies to the request. Most of the complication comes from the requirement after SDK 23 to ask the user for the WRITE_EXTERNAL_STORAGE permission. Unfortunately there is no mechanism to suspend the download request until permission is resolved so this code stores off the request and sets up a listener that enqueues the download once permissions are resolved so the user experience is really nice.

I didn't see anything in the way of tests or documentation that needs to be added for this change, so let me know if I missed anything. Thanks!
2019-01-07 15:02:47 +01:00
Chi-AnTai 8427a8db69 chore(docs): Add update style doc (#225)
* add style doc in reference.md

* Update Reference.md
2019-01-07 14:56:48 +01:00
Jamon Holmgren 279147b39d chore(docs): Add testimonial to README (#217)
Adds a testimonial from Garrett McCollough (with his permission) to the README.
2019-01-02 10:07:25 +01:00
semantic-release-bot ef2f7e1530 chore(release): 2.14.3 [skip ci]
## [2.14.3](https://github.com/react-native-community/react-native-webview/compare/v2.14.2...v2.14.3) (2018-12-14)

### Bug Fixes

* **WKWebview:** Reverts [#134](https://github.com/react-native-community/react-native-webview/issues/134), fixes issue where keyboard dismiss would scroll to top ([#210](https://github.com/react-native-community/react-native-webview/issues/210)) ([9f37dde](https://github.com/react-native-community/react-native-webview/commit/9f37dde))
2018-12-14 23:03:16 +00:00
Ryan Linton 9f37ddea61 fix(WKWebview): Reverts #134, fixes issue where keyboard dismiss would scroll to top (#210) 2018-12-14 15:01:58 -08:00
semantic-release-bot 832356678c chore(release): 2.14.2 [skip ci]
## [2.14.2](https://github.com/react-native-community/react-native-webview/compare/v2.14.1...v2.14.2) (2018-12-14)

### Bug Fixes

* **WKWebview:** Surface evaluateJavaScript errors ([#179](https://github.com/react-native-community/react-native-webview/issues/179)) ([ec469cf](https://github.com/react-native-community/react-native-webview/commit/ec469cf))
2018-12-14 10:26:30 +00:00
Ryan Linton ec469cf00d fix(WKWebview): Surface evaluateJavaScript errors (#179)
In the current code using `startInLoadingState` and `injectedJavaScript` will result in an infinite loading state if `injectedJavaScript` fails to evaluate for some reason. This adds a red box error explaining there was a failure to evaluate javascript. In my case this was do to the JS string not returning a valid type so I've added a that as a potential solution in the error message and added some documentation to the API Reference with some additional warnings.

To reproduce the existing behavior setup a webview with `startInLoadingState` and `injectedJavaScript` that returns an invalid type (in my case it returned a function). You should see an infinite loading state as `onLoadEnd` is never called.

Try the same with this branch and you'll get a nice red box error suggesting one potential solution to the problem.

![simulator screen shot - iphone 8 plus - 2018-11-28 at 15 09 25](https://user-images.githubusercontent.com/1944151/49193714-fccde100-f334-11e8-89dc-bf220e0adf23.png)
2018-12-14 11:24:52 +01:00
semantic-release-bot 6eaca5f005 chore(release): 2.14.1 [skip ci]
## [2.14.1](https://github.com/react-native-community/react-native-webview/compare/v2.14.0...v2.14.1) (2018-12-14)

### Bug Fixes

* **WKWebview:** Fixed non-working iOS alert. ([#188](https://github.com/react-native-community/react-native-webview/issues/188)) ([41d9bdc](https://github.com/react-native-community/react-native-webview/commit/41d9bdc))
2018-12-14 10:20:18 +00:00
npm-ued 41d9bdcce4 fix(WKWebview): Fixed non-working iOS alert. (#188) 2018-12-14 11:18:48 +01:00
semantic-release-bot 42706fc733 chore(release): 2.14.0 [skip ci]
# [2.14.0](https://github.com/react-native-community/react-native-webview/compare/v2.13.0...v2.14.0) (2018-11-30)

### Features

* **Android Webview:** Support onShouldStartLoadWithRequest on Android ([#107](https://github.com/react-native-community/react-native-webview/issues/107)) ([b1b6626](https://github.com/react-native-community/react-native-webview/commit/b1b6626)), closes [#59](https://github.com/react-native-community/react-native-webview/issues/59) [#106](https://github.com/react-native-community/react-native-webview/issues/106) [#106](https://github.com/react-native-community/react-native-webview/issues/106)
2018-11-30 02:12:14 +00:00
Thibault Malbranche b1b662628e feat(Android Webview): Support onShouldStartLoadWithRequest on Android (#107)
This PR adds support for `onShouldStartLoadWithRequest` on android.

The initial PR was #59

The issue for this PR is: #106

fixes #106
2018-11-30 02:59:12 +01:00
Michael Diarmid 9d2bba932b
Merge branch 'master' into master 2018-11-28 17:27:38 +01:00
semantic-release-bot 48230e4dcf chore(release): 2.13.0 [skip ci]
# [2.13.0](https://github.com/react-native-community/react-native-webview/compare/v2.12.1...v2.13.0) (2018-11-25)

### Features

* **WKWebView:** [ios] Add allowsLinkPreview property to WKWebView ([#170](https://github.com/react-native-community/react-native-webview/issues/170)) ([731dd03](https://github.com/react-native-community/react-native-webview/commit/731dd03))
2018-11-25 10:18:20 +00:00
Jermaine Oosterling 731dd03fc6 feat(WKWebView): [ios] Add allowsLinkPreview property to WKWebView (#170)
* [ios] Add ‘allowsLinkPreview’ property to iOS WKWebView.

* Add divider in docs

* Typo: add hyphen -> _allowsLinkPreview
2018-11-25 11:17:28 +01:00
semantic-release-bot 7918b360d0 chore(release): 2.12.1 [skip ci]
## [2.12.1](https://github.com/react-native-community/react-native-webview/compare/v2.12.0...v2.12.1) (2018-11-22)

### Bug Fixes

* **types:** Fixing typing. ([#167](https://github.com/react-native-community/react-native-webview/issues/167)) ([65bd972](https://github.com/react-native-community/react-native-webview/commit/65bd972))
2018-11-22 14:20:58 +00:00
KaFai 65bd97219a fix(types): Fixing typing. (#167)
so happy to see there is typing in the newest release.
I added back WebViewIOSLoadRequestEvent which also exist in react-native typing and fix startInLoadingState which should be boolean.
2018-11-22 15:19:16 +01:00
semantic-release-bot 9ffb6711cc chore(release): 2.12.0 [skip ci]
# [2.12.0](https://github.com/react-native-community/react-native-webview/compare/v2.11.0...v2.12.0) (2018-11-22)

### Features

* **types:** Post message types ([#166](https://github.com/react-native-community/react-native-webview/issues/166)) ([0ff0fd3](https://github.com/react-native-community/react-native-webview/commit/0ff0fd3))
2018-11-22 14:11:22 +00:00
Chet Corcos 0ff0fd3ed6 feat(types): Post message types (#166) 2018-11-22 15:10:10 +01:00
semantic-release-bot 3b247e3f1a chore(release): 2.11.0 [skip ci]
# [2.11.0](https://github.com/react-native-community/react-native-webview/compare/v2.10.0...v2.11.0) (2018-11-22)

### Features

* **WKWebview:** [ios] Add 'pagingEnabled' property to the iOS WKWebview ([#165](https://github.com/react-native-community/react-native-webview/issues/165)) ([4870e1f](https://github.com/react-native-community/react-native-webview/commit/4870e1f))
2018-11-22 12:59:10 +00:00
wiscat 4870e1f06a feat(WKWebview): [ios] Add 'pagingEnabled' property to the iOS WKWebview (#165) 2018-11-22 13:58:07 +01:00