sunzhongliang
c8e8bb3eb6
Merge branch 'master' into feat-removeScript
4 år sedan
semantic-release-bot
8a46bb9453
chore(release): 9.1.1 [skip ci]
## [9.1.1](https://github.com/react-native-community/react-native-webview/compare/v9.1.0...v9.1.1 ) (2020-04-07)
### Bug Fixes
* **iOS:** injectedJavaScriptBeforeContentLoaded now runs when messaging is not enabled ([#1286 ](https://github.com/react-native-community/react-native-webview/issues/1286 )) ([571fb8d ](https://github.com/react-native-community/react-native-webview/commit/ 571fb8d ))
4 år sedan
Salvatore Randazzo
571fb8df79
fix(iOS): injectedJavaScriptBeforeContentLoaded now runs when messaging is not enabled (#1286 )
4 år sedan
semantic-release-bot
fda1794035
chore(release): 9.1.0 [skip ci]
# [9.1.0](https://github.com/react-native-community/react-native-webview/compare/v9.0.2...v9.1.0 ) (2020-04-06)
### Features
* **Android:** Implement direct communication between Android code and JS ([#1203 ](https://github.com/react-native-community/react-native-webview/issues/1203 )) ([c88e380 ](https://github.com/react-native-community/react-native-webview/commit/ c88e380 ))
4 år sedan
ivari
c88e380762
feat(Android): Implement direct communication between Android code and JS (#1203 )
4 år sedan
semantic-release-bot
9fbcedd6b8
chore(release): 9.0.2 [skip ci]
## [9.0.2](https://github.com/react-native-community/react-native-webview/compare/v9.0.1...v9.0.2 ) (2020-03-27)
### Bug Fixes
* **types:** Remove readonly definition in WebViewTypes.ts ([#1272 ](https://github.com/react-native-community/react-native-webview/issues/1272 )) ([3c06d78 ](https://github.com/react-native-community/react-native-webview/commit/ 3c06d78 ))
4 år sedan
Giovanni Montenegro
3c06d78239
fix(types): Remove readonly definition in WebViewTypes.ts (#1272 )
Co-authored-by: Giovanni Montenegro <giovanni.montenegro@fincons.com >
4 år sedan
sunzhongliang
06260b0e5e
feat: remove scriptMessageHandlerForName method
5 år sedan
sunzhongliang
425bf0a210
Merge remote-tracking branch 'upstream/master'
5 år sedan
semantic-release-bot
2555297785
chore(release): 9.0.1 [skip ci]
## [9.0.1](https://github.com/react-native-community/react-native-webview/compare/v9.0.0...v9.0.1 ) (2020-03-17)
### Bug Fixes
* **deps:** Update lock file ([#1257 ](https://github.com/react-native-community/react-native-webview/issues/1257 )) ([9732d65 ](https://github.com/react-native-community/react-native-webview/commit/ 9732d65 ))
5 år sedan
Jason Safaiyeh
9732d65289
fix(deps): Update lock file (#1257 )
5 år sedan
semantic-release-bot
bff88f8281
chore(release): 9.0.0 [skip ci]
# [9.0.0](https://github.com/react-native-community/react-native-webview/compare/v8.2.1...v9.0.0 ) (2020-03-17)
### Features
* **iOS:** WKUserScripts (e.g. injectedJavaScript) can now update upon props change; and can be configured to inject into all frames. ([#1119 ](https://github.com/react-native-community/react-native-webview/issues/1119 )) ([9cb2f6e ](https://github.com/react-native-community/react-native-webview/commit/ 9cb2f6e )), closes [/github.com/react-native-community/react-native-webview/pull/1119#issuecomment-574919464 ](https://github.com//github.com/react-native-community/react-native-webview/pull/1119/issues/issuecomment- 574919464 )
### BREAKING CHANGES
* **iOS:** • Props updates to `injectedJavaScript` are no longer immutable.
5 år sedan
Jamie Birch
9cb2f6e2f3
feat(iOS): WKUserScripts (e.g. injectedJavaScript) can now update upon props change; and can be configured to inject into all frames. (#1119 )
BREAKING CHANGE:
• Props updates to `injectedJavaScript` are no longer immutable.
• `injectedJavaScript` no longer attaches a `jsEvaluationValue` property to the `onLoadingFinish` event. Check out: https://github.com/react-native-community/react-native-webview/pull/1119#issuecomment -574919464 to migrate with the same behavior.
5 år sedan
semantic-release-bot
e9ad1df51e
chore(release): 8.2.1 [skip ci]
## [8.2.1](https://github.com/react-native-community/react-native-webview/compare/v8.2.0...v8.2.1 ) (2020-03-17)
### Bug Fixes
* **deps:** Update React Native Windows version to ^0.61.0-beta.58 ([#1256 ](https://github.com/react-native-community/react-native-webview/issues/1256 )) ([91064ab ](https://github.com/react-native-community/react-native-webview/commit/ 91064ab ))
5 år sedan
Kai Guo
91064ab4a9
fix(deps): Update React Native Windows version to ^0.61.0-beta.58 (#1256 )
5 år sedan
semantic-release-bot
5f7f4a19f2
chore(release): 8.2.0 [skip ci]
# [8.2.0](https://github.com/react-native-community/react-native-webview/compare/v8.1.2...v8.2.0 ) (2020-03-17)
### Features
* **Windows:** Windows support! ([#1220 ](https://github.com/react-native-community/react-native-webview/issues/1220 )) ([ffee0d4 ](https://github.com/react-native-community/react-native-webview/commit/ ffee0d4 ))
5 år sedan
Kai Guo
ffee0d4362
feat(Windows): Windows support! (#1220 )
5 år sedan
Luciano Lima
86c44588f8
chore(docs): Update React Native links to reactnative.dev (#1233 )
5 år sedan
semantic-release-bot
19896fc810
chore(release): 8.1.2 [skip ci]
## [8.1.2](https://github.com/react-native-community/react-native-webview/compare/v8.1.1...v8.1.2 ) (2020-02-21)
### Bug Fixes
* **Android:** Don't log the cookie when downloading file. ([#1224 ](https://github.com/react-native-community/react-native-webview/issues/1224 )) ([2470245 ](https://github.com/react-native-community/react-native-webview/commit/ 2470245 ))
5 år sedan
trcoffman
24702450f3
fix(Android): Don't log the cookie when downloading file. (#1224 )
5 år sedan
semantic-release-bot
118663287a
chore(release): 8.1.1 [skip ci]
## [8.1.1](https://github.com/react-native-community/react-native-webview/compare/v8.1.0...v8.1.1 ) (2020-02-19)
### Bug Fixes
* **Android:** Don't show camera options for a file upload when they can not be used ([#1210 ](https://github.com/react-native-community/react-native-webview/issues/1210 )) ([4093682 ](https://github.com/react-native-community/react-native-webview/commit/ 4093682 ))
5 år sedan
Daniel Vicory
4093682e08
fix(Android): Don't show camera options for a file upload when they can not be used (#1210 )
* Don't show camera options for a file upload that would result in nothing happening for the user.
On Android, if the application declares the camera permission, then even intents
that use the camera require permission to be granted. This is a problem for apps
that combine an in-app camera with a WebView that has file uploading and the user
has not given permission for the camera.
Note, this will not request permission for camera. This will simply prevent
showing the camera options that would be a no-op action for users. It does this
by checking if the camera permission is declared, and if so, checks that the
user has granted permission.
More information: https://blog.egorand.me/taking-photos-not-so-simply-how-i-got-bitten-by-action_image_capture/
* Add example and documentation about camera option availability in file uploads for Android.
5 år sedan
Allan Santos
5024295633
chore(docs): Fix Getting Started Guide link in Breaking History (#1213 )
5 år sedan
sunzhongliang
d101957ac0
Merge branch 'master' of https://github.com/react-native-community/react-native-webview
# Conflicts:
# ios/RNCWebView.m
5 år sedan
sunzhongliang
8ade71815b
Revert "fix: iOS12 WKWebView WebProcessProxy Crash"
This reverts commit 8608e8a1b4 .
5 år sedan
sunzhongliang
8608e8a1b4
fix: iOS12 WKWebView WebProcessProxy Crash
5 år sedan
António Goulão
6c8b8fc4b1
chore(docs): Update Android assets path (#1173 )
5 år sedan
Jason Safaiyeh
327bc6b7de
chore(docs): Update cookie links (#1149 )
5 år sedan
Dulmandakh
e6241cbb6a
chore(Android): Convert RNCWebViewPackage to Kotlin (#1194 )
* RN is implementation dependency
* renamed: RNCWebViewPackage.java -> RNCWebViewPackage.kt
* migrate RNCWebViewPackage to Kotlin
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com >
5 år sedan
semantic-release-bot
f65783d348
chore(release): 8.1.0 [skip ci]
# [8.1.0](https://github.com/react-native-community/react-native-webview/compare/v8.0.6...v8.1.0 ) (2020-02-12)
### Features
* **macOS:** macOS Support ([#1164 ](https://github.com/react-native-community/react-native-webview/issues/1164 )) ([1e57231 ](https://github.com/react-native-community/react-native-webview/commit/ 1e57231 ))
5 år sedan
Tom Underhill
1e572318ec
feat(macOS): macOS Support (#1164 )
5 år sedan
semantic-release-bot
31d015badf
chore(release): 8.0.6 [skip ci]
## [8.0.6](https://github.com/react-native-community/react-native-webview/compare/v8.0.5...v8.0.6 ) (2020-01-30)
### Bug Fixes
* **Android:** Revert "Redirected URLs now redirect correctly. ([#991 ](https://github.com/react-native-community/react-native-webview/issues/991 ))" ([#1177 ](https://github.com/react-native-community/react-native-webview/issues/1177 )) ([344aab5 ](https://github.com/react-native-community/react-native-webview/commit/ 344aab5 ))
5 år sedan
Daniel Vicory
344aab591a
fix(Android): Revert "Redirected URLs now redirect correctly. (#991 )" (#1177 )
This reverts commit acf1ad7560 .
5 år sedan
semantic-release-bot
d4efa1e7f5
chore(release): 8.0.5 [skip ci]
## [8.0.5](https://github.com/react-native-community/react-native-webview/compare/v8.0.4...v8.0.5 ) (2020-01-26)
### Bug Fixes
* **Android:** Redirected URLs now redirect correctly. ([#991 ](https://github.com/react-native-community/react-native-webview/issues/991 )) ([acf1ad7 ](https://github.com/react-native-community/react-native-webview/commit/ acf1ad7 ))
5 år sedan
hanlh1
acf1ad7560
fix(Android): Redirected URLs now redirect correctly. (#991 )
Co-authored-by: Jamon Holmgren <jamon@infinite.red >
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com >
5 år sedan
Tom Underhill
bf1d645716
chore(example): Added three test examples: Alerts, Scrolling, and Background.
5 år sedan
semantic-release-bot
a466c0f62d
chore(release): 8.0.4 [skip ci]
## [8.0.4](https://github.com/react-native-community/react-native-webview/compare/v8.0.3...v8.0.4 ) (2020-01-20)
### Bug Fixes
* **iOS:** Meta method 'UIScrollViewContentInsetAdjustmentBehavior:' conflict warning ([e6edc6d ](https://github.com/react-native-community/react-native-webview/commit/ e6edc6d )), closes [/github.com/facebook/react-native/blob/master/React/Views/ScrollView/RCTScrollViewManager.m#L40](https://github.com//github.com/facebook/react-native/blob/master/React/Views/ScrollView/RCTScrollViewManager.m/issues/L40 )
5 år sedan
Tommy Nguyen
e6edc6dc73
fix(iOS): Meta method 'UIScrollViewContentInsetAdjustmentBehavior:' conflict warning
This converter is already defined in
[RCTScrollViewManager.m](https://github.com/facebook/react-native/blob/master/React/Views/ScrollView/RCTScrollViewManager.m#L40 ).
Redefining it in react-native-webview can cause undefined behaviour when
used. Since ScrollView is unlikely to go away, we can take a dependency on it.
All current tests should pass.
When building a React Native app with `react-native-webview`, the following
warning can be seen in the build logs:
```
Meta method 'UIScrollViewContentInsetAdjustmentBehavior:' in category from /~/Library/Developer/Xcode/DerivedData/App-geojljebaazfrrgvxfkjjpiwmdlg/Build/Products/Debug-iphonesimulator/React-Core/libReact-Core.a(RCTScrollViewManager.o) conflicts with same method from another category
```
The warning should go away after removing the offending function.
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com >
5 år sedan
Jesse Katsumata
3a9218031f
chore(example): Added example app
5 år sedan
Jamie Birch
5e8b4d5c2b
chore(iOS): Extract wkWebViewConfig setup to setUpWkWebViewConfig function
5 år sedan
semantic-release-bot
f0cb28ff9a
chore(release): 8.0.3 [skip ci]
## [8.0.3](https://github.com/react-native-community/react-native-webview/compare/v8.0.2...v8.0.3 ) (2020-01-08)
### Bug Fixes
* **whitelisted origins:** Prevent handling of un-whitelisted URLs ([0442126 ](https://github.com/react-native-community/react-native-webview/commit/ 0442126 ))
5 år sedan
aarondail
0442126595
fix(whitelisted origins): Prevent handling of un-whitelisted URLs
* Preventing an unhandled promise rejection when: a URL is loaded by the WebView, but the URL isn't in the origin whitelist, so it is handed off to the OS to handle by calling Linking.openURL(), but Linking.openURL has an error. The code wasn't catching the error, so this would result in an unhandled promise rejection. Now the error is being caught.
* Fixing a problem where a URL is handled to the OS to deal with, via Linking.openURL, and also loaded in the WebView by making those cases mutually exclusive (they weren't previously). In more detail: when a URL is loaded by the WebView that isn't in the origin whitelist it is handled off to the OS to handle by calling Linking.openURL. But, if the onShouldStartLoadWithRequest prop is set, then that function would also be called, and then that would determine whether the URL should be loaded. This can result in a situation where the URL is passed to Linking.openURL and onShouldStartLoadWithRequest returns true so it is also loaded in the WebView. The client can fix this by duplicating the origin whitelist logic in their onShouldStartLoadWithRequest of course, but this change makes it so they don't have to.
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com >
5 år sedan
Jesse Katsumata
13ae8c9661
chore(README): Lean Core badge
* docs: add Lean core badge
* docs: adjust badge style
5 år sedan
dependabot[bot]
07a87131dc
chore(deps): bump npm from 6.11.3 to 6.13.4 (#1079 )
Bumps [npm](https://github.com/npm/cli ) from 6.11.3 to 6.13.4.
- [Release notes](https://github.com/npm/cli/releases )
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md )
- [Commits](https://github.com/npm/cli/compare/v6.11.3...v6.13.4 )
Signed-off-by: dependabot[bot] <support@github.com >
5 år sedan
semantic-release-bot
c4f8a74763
chore(release): 8.0.2 [skip ci]
## [8.0.2](https://github.com/react-native-community/react-native-webview/compare/v8.0.1...v8.0.2 ) (2019-12-27)
### Bug Fixes
* **iOS:** WKWebView RetainCycle ([#1096 ](https://github.com/react-native-community/react-native-webview/issues/1096 )) ([4f4644f ](https://github.com/react-native-community/react-native-webview/commit/ 4f4644f ))
5 år sedan
Jason Safaiyeh
8a9836c703
chore(docs): Add 8.0.0 to Breaking History on README (#1085 )
5 år sedan
sunzhongliang
4f4644ffd8
fix(iOS): WKWebView RetainCycle (#1096 )
5 år sedan
sunzhongliang
dcf4fb2653
Merge pull request #1 from sunzhongliangde/fix-WebView-RetainCycle
fix:iOS WKWebView RetainCycle
5 år sedan
sunzhongliang
c4e0a976c7
fix:iOS WKWebView RetainCycle
5 år sedan
semantic-release-bot
7ba1bc5129
chore(release): 8.0.1 [skip ci]
## [8.0.1](https://github.com/react-native-community/react-native-webview/compare/v8.0.0...v8.0.1 ) (2019-12-17)
### Bug Fixes
* **iOS:** Ignore WebKitDomainError 101 ([#961 ](https://github.com/react-native-community/react-native-webview/issues/961 )) ([adb5608 ](https://github.com/react-native-community/react-native-webview/commit/ adb5608 ))
5 år sedan