Skip to content

Commit

Permalink
chore(release): 8.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# [8.0.0](react-native-webview/react-native-webview@v7.6.0...v8.0.0) (2019-12-16)

### Features

* **ios:** Generate history API events on iOS ([#1082](react-native-webview/react-native-webview#1082)) ([3615296](react-native-webview/react-native-webview@3615296))

### BREAKING CHANGES

* **ios:** if you use onNavigationStateChange on iOS it will now trigger on # changes to the url.

* Hook the `window.history` API on iOS to generate events

The underlying WKWebView doesn't seem to generate any events in response to the `window.history` API - none of the `WKNavigationDelegate` methods fire.

Given this limitation, the only way to know when the location changes via this API is to inject Javascript into the page and have it notify the native code directly when any of these functions are called.

The `setTimeout` call gives up the current tick, allowing the location to change before firing the event.

* Remove the outdated section about hash changes

Now that this bug is fixed, the workaround is no longer required.
  • Loading branch information
noproblem23 committed Dec 16, 2019
1 parent 16dcfe9 commit 7967520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Thibault Malbranche <[email protected]>"
],
"license": "MIT",
"version": "7.6.0",
"version": "8.0.0",
"homepage": "https://github.com/react-native-community/react-native-webview#readme",
"scripts": {
"ci": "CI=true && yarn lint && yarn test",
Expand Down

0 comments on commit 7967520

Please sign in to comment.