Brandon Lax
dbf46593fa
fix(macOS): Don't include iOS pull-to-refresh control ( #1636 )
...
* Update RNCWebView.h
Limit methods relating to pull to refresh to only iOS
* Update RNCWebView.m
Block methods relating to pull to refresh when the target is macOS as macOS does not have the UIRefreshControl
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
2020-10-05 17:14:42 +02:00
Matteo Pagani
f2041955a2
fix(podspec): Lowered deployment target for MacOS to 10.13 ( #1673 )
2020-10-05 17:12:56 +02:00
semantic-release-bot
2d24131910
chore(release): 10.9.1 [skip ci]
...
## [10.9.1](https://github.com/react-native-community/react-native-webview/compare/v10.9.0...v10.9.1 ) (2020-09-29)
### Bug Fixes
* **ios:** Xcode 12 compatibility ([#1643 ](https://github.com/react-native-community/react-native-webview/issues/1643 )) ([08b7099
](08b709967f
))
2020-09-29 17:23:14 +00:00
Radek Czemerys
08b709967f
fix(ios): Xcode 12 compatibility ( #1643 )
...
* fix: add React-Core to podspec for Xcode 12 compatibility
https://github.com/facebook/react-native/issues/29633
* chore: remove React dependency
2020-09-29 19:18:15 +02:00
Jamon Holmgren
a83596eac2
chore(docs): Add other breaking changes to README
...
[skip ci]
2020-09-25 09:27:30 -07:00
semantic-release-bot
a482a74108
chore(release): 10.9.0 [skip ci]
...
# [10.9.0](https://github.com/react-native-community/react-native-webview/compare/v10.8.3...v10.9.0 ) (2020-09-15)
### Features
* **iOS:** Add prop autoManageStatusBarEnabled ([#914 ](https://github.com/react-native-community/react-native-webview/issues/914 )) ([22a60fd
](22a60fd23a
))
2020-09-15 00:45:42 +00:00
Kesha Antonov
22a60fd23a
feat(iOS): Add prop autoManageStatusBarEnabled ( #914 )
...
Co-authored-by: Jamon Holmgren <jamon@infinite.red>
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2020-09-15 02:42:09 +02:00
Dominic Lee
40814101be
chore(docs): remove hash url change note ( #1622 )
2020-09-08 23:55:50 +02:00
iou90
4c4399cd57
Fix(types): Update Typescript definition file, declaring WebView class as a generic class ( #1604 )
...
Co-authored-by: iou90kant <dekang.liu@guokr.com>
2020-09-05 13:19:50 +02:00
semantic-release-bot
4840eeb588
chore(release): 10.8.3 [skip ci]
...
## [10.8.3](https://github.com/react-native-community/react-native-webview/compare/v10.8.2...v10.8.3 ) (2020-08-31)
### Bug Fixes
* **types:** Update Typescript definition file ([#1597 ](https://github.com/react-native-community/react-native-webview/issues/1597 )) ([9dcd108
](9dcd108b1f
))
2020-08-31 13:23:56 +00:00
Mathieu Bruguier
9dcd108b1f
fix(types): Update Typescript definition file ( #1597 )
2020-08-31 15:18:57 +02:00
Daniel Vicory
4d4b5e2387
Synchronously decide if Android WebView should load a URL or not. ( #1590 )
...
This solves a class of issues when the WebView loses "context"
that a subsequent page load is the same as what was attempted
to be loaded previously. This solves a bug where a HTTP redirect
in combination with history manipulations causes a user to be
stuck and prevented from going back. Since WebView requests are
allowed to happen normally, debugging the WebView and tracking
redirects and page load initiators is more accurate and easier.
This will also bypass bridge latency and provide a faster navigation.
To do this, we must lock in the shouldOverrideUrlLoading callback
and send an event to JS. Currently, this callback is ran on
the main UI thread, of which we have no control over. This is
problematic as using the bridge in most ways seems to require
the main UI thread, which will cause a deadlock. However, using
BatchedBridge for Java->JS and a synchronous method for JS->Java
doesn't cause any problems. Additionally, it's been designed so
that if WebView suddenly runs the callback on a different thread
allowing for concurrency, it will continue to work.
2020-08-26 08:59:51 +02:00
semantic-release-bot
3a6d966e50
chore(release): 10.8.2 [skip ci]
...
## [10.8.2](https://github.com/react-native-community/react-native-webview/compare/v10.8.1...v10.8.2 ) (2020-08-25)
### Bug Fixes
* **deps:** Update package.json ([#1583 ](https://github.com/react-native-community/react-native-webview/issues/1583 )) ([8dd9969
](8dd9969288
))
2020-08-25 23:30:28 +00:00
Jason Safaiyeh
8dd9969288
fix(deps): Update package.json ( #1583 )
...
* Update package.json
* Remove react version from peerDependencies
* Update package.json
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2020-08-26 01:26:13 +02:00
semantic-release-bot
c2395bfec2
chore(release): 10.8.1 [skip ci]
...
## [10.8.1](https://github.com/react-native-community/react-native-webview/compare/v10.8.0...v10.8.1 ) (2020-08-25)
### Bug Fixes
* **iOS:** changed the way the top view controller is obtained. ([#1592 ](https://github.com/react-native-community/react-native-webview/issues/1592 )) ([2cb2113
](2cb2113c29
))
* **ts:** Convert ContentInsetAdjustmentBehavior from an enum back to a string union type ([#1536 ](https://github.com/react-native-community/react-native-webview/issues/1536 )) ([a48c981
](a48c9819c5
))
2020-08-25 23:20:58 +00:00
Caleb Clarke
a48c9819c5
fix(ts): Convert ContentInsetAdjustmentBehavior from an enum back to a string union type ( #1536 )
...
ContentInsetAdjustmentBehavior was originally added as a string union type. The change to support MacOS replaced it with an enum, which was a bit of a breaking change, especially as the enum was not exported from the main library. Exporting the enum would probably also help, but since this was the only enum and the rest of react-native-webview uses string unions instead, it seems best to revert it to a string union.
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-08-26 01:16:18 +02:00
cristianoccazinsp
2cb2113c29
fix(iOS): changed the way the top view controller is obtained. ( #1592 )
...
Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
2020-08-26 01:13:00 +02:00
Leonardo Russo
db529e265f
Updated Guide.md for using injectedJavaScript ( #1578 )
...
https://github.com/react-native-community/react-native-webview/issues/1554
2020-08-25 15:02:13 +02:00
semantic-release-bot
6598325940
chore(release): 10.8.0 [skip ci]
...
# [10.8.0](https://github.com/react-native-community/react-native-webview/compare/v10.7.0...v10.8.0 ) (2020-08-24)
### Features
* **android:** Add androidLayerType as prop ([#1588 ](https://github.com/react-native-community/react-native-webview/issues/1588 )) ([9ffca8f
](9ffca8f9db
))
2020-08-24 12:29:54 +00:00
oliviacaraiman
9ffca8f9db
feat(android): Add androidLayerType as prop ( #1588 )
...
* Add androidLayerType as a prop
* Deprecate "androidHardwareAccelerationDisabled" prop
* Update reference
Co-authored-by: Olivia Caraiman <olcaraim@microsoft.com>
2020-08-24 14:23:38 +02:00
semantic-release-bot
2a95296ddd
chore(release): 10.7.0 [skip ci]
...
# [10.7.0](https://github.com/react-native-community/react-native-webview/compare/v10.6.0...v10.7.0 ) (2020-08-17)
### Features
* **iOS:** Add the pull to refresh ([#1265 ](https://github.com/react-native-community/react-native-webview/issues/1265 )) ([a02d88f
](a02d88f54f
))
2020-08-17 10:12:57 +00:00
Sergei Butko
a02d88f54f
feat(iOS): Add the pull to refresh ( #1265 )
...
* Add pull to refresh support for iOS
* Add pull to refresh control removal from WebView
* Add the type and reference description about pull to refresh
* Set bounces to true when enabling pull to refresh, add references
* Add the back to props anchor to pullToRefreshEnabled
2020-08-17 12:07:36 +02:00
semantic-release-bot
2451c00f26
chore(release): 10.6.0 [skip ci]
...
# [10.6.0](https://github.com/react-native-community/react-native-webview/compare/v10.5.0...v10.6.0 ) (2020-08-15)
### Features
* **events:** Add isTopFrame to shouldStartLoadForRequest ([#1537 ](https://github.com/react-native-community/react-native-webview/issues/1537 )) ([6a9116f
](6a9116f2d1
))
2020-08-15 09:24:55 +00:00
Caleb Clarke
6a9116f2d1
feat(events): Add isTopFrame to shouldStartLoadForRequest ( #1537 )
...
* Add isTopFrame to shouldStartLoadForRequest on iOS
onLoadingStart is not raised for inner frames, but onShouldStartLoadWithRequest still is. This keeps that behavior but adds isTopFrame to onShouldStartLoadWithRequest so that apps can perform their own filtering if desired.
* Update docs
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-08-15 11:21:38 +02:00
Bryan Stearns
621d2df72e
chore(docs): Add a debugging note ( #1517 by @BryanStearns)
...
[skip ci]
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-08-14 20:24:05 -07:00
semantic-release-bot
462448900a
chore(release): 10.5.0 [skip ci]
...
# [10.5.0](https://github.com/react-native-community/react-native-webview/compare/v10.4.2...v10.5.0 ) (2020-08-15)
### Features
* **ios:** Add iOS contentMode property ([#1538 ](https://github.com/react-native-community/react-native-webview/issues/1538 ) by @TheAlmightyBob) ([8b69452
](8b69452643
))
2020-08-15 03:22:47 +00:00
Caleb Clarke
8b69452643
feat(ios): Add iOS contentMode property ( #1538 by @TheAlmightyBob)
...
This allows overriding iPadOS 13's desktop-class browsing to load mobile content instead of desktop content.
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-08-14 20:16:54 -07:00
semantic-release-bot
22038cc0d3
chore(release): 10.4.2 [skip ci]
...
## [10.4.2](https://github.com/react-native-community/react-native-webview/compare/v10.4.1...v10.4.2 ) (2020-08-15)
### Bug Fixes
* **incognito:** Ensures that incognito doesn't clear cookies when not enabled ([#1447 ](https://github.com/react-native-community/react-native-webview/issues/1447 ) by [@jasonkellydk](https://github.com/jasonkellydk )) ([63c584c
](63c584c647
))
2020-08-15 03:11:05 +00:00
Jason Kelly
63c584c647
fix(incognito): Ensures that incognito doesn't clear cookies when not enabled ( #1447 by @jasonkellydk)
...
Co-authored-by: Jason Kelly <jason.kelly@isobar.com>
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com>
2020-08-14 20:04:20 -07:00
Kai Guo
7513f198c1
chore(ci): Cleanup windows ci ( #1558 )
...
* Cleanup windows CI
* fix
* Remove nuget setup
* Separate build and deploy
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com>
2020-08-13 23:43:23 -07:00
semantic-release-bot
5baacdb45c
chore(release): 10.4.1 [skip ci]
...
## [10.4.1](https://github.com/react-native-community/react-native-webview/compare/v10.4.0...v10.4.1 ) (2020-08-13)
### Bug Fixes
* **iOS:** file picker crash ([#1567 ](https://github.com/react-native-community/react-native-webview/issues/1567 )) ([05c1d8f
](05c1d8f264
))
2020-08-13 07:41:18 +00:00
jxm2004
05c1d8f264
fix(iOS): file picker crash ( #1567 )
...
* fix(iOS): Consider UIImagePickerController or similar controllers that are no longer beingPresented when acquiring the TopViewController; this prevents the crash of throwing an alert on a ViewController which is no longer in the window hierarchy
* fix(iOS): correcting import to src from lib
* fix(iOS): reverting import modification
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2020-08-13 09:36:45 +02:00
semantic-release-bot
096002e12f
chore(release): 10.4.0 [skip ci]
...
# [10.4.0](https://github.com/react-native-community/react-native-webview/compare/v10.3.3...v10.4.0 ) (2020-08-06)
### Features
* **android:** WebView crash handling ([#1480 ](https://github.com/react-native-community/react-native-webview/issues/1480 )) ([8a8b7ce
](8a8b7ceb98
))
2020-08-06 20:28:36 +00:00
cristianoccazinsp
8a8b7ceb98
feat(android): WebView crash handling ( #1480 )
...
Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
2020-08-06 22:21:01 +02:00
semantic-release-bot
8081443c53
chore(release): 10.3.3 [skip ci]
...
## [10.3.3](https://github.com/react-native-community/react-native-webview/compare/v10.3.2...v10.3.3 ) (2020-07-29)
### Bug Fixes
* **types:** Add missing applicationNameForUserAgent type in WebViewSharedProps ([#1542 ](https://github.com/react-native-community/react-native-webview/issues/1542 )) ([91295e5
](91295e5258
))
2020-07-29 15:04:24 +00:00
Caleb Clarke
91295e5258
fix(types): Add missing applicationNameForUserAgent type in WebViewSharedProps ( #1542 )
2020-07-29 17:00:28 +02:00
Dragoș Străinu
97aaf89037
docs(reference): add links to top with jump2header ( #1528 by @strdr4605)
...
[skip ci]
2020-07-23 22:21:56 -07:00
semantic-release-bot
6f6e572efa
chore(release): 10.3.2 [skip ci]
...
## [10.3.2](https://github.com/react-native-community/react-native-webview/compare/v10.3.1...v10.3.2 ) (2020-06-26)
### Bug Fixes
* **android sdk 28:** build issue ([#1469 ](https://github.com/react-native-community/react-native-webview/issues/1469 )) ([5f823bb
](5f823bb77b
))
2020-06-26 14:09:06 +00:00
Rinku Kumari
5f823bb77b
fix(android sdk 28): build issue ( #1469 )
...
Co-authored-by: Rinku Kumari <rinku@ideaboard.xyz>
2020-06-26 16:04:44 +02:00
trcoffman
b0ac0c15be
chore(windows): Add a .gitattributes to fix line endings across myriad files. ( #1431 by @trcoffman)
...
[skip ci]
2020-06-16 11:53:22 -07:00
Anton Vlasenko
a2029d2d47
chore(docs): Fix broken link in docs/Guide.md ( #1436 by @Sappphire64)
...
[skip ci]
2020-06-13 15:13:01 -07:00
semantic-release-bot
dce30be136
chore(release): 10.3.1 [skip ci]
...
## [10.3.1](https://github.com/react-native-community/react-native-webview/compare/v10.3.0...v10.3.1 ) (2020-06-13)
### Bug Fixes
* **android:** Add SSL error handling for Android WebView ([#1450 ](https://github.com/react-native-community/react-native-webview/issues/1450 ) by [@thephpjedi](https://github.com/thephpjedi )) ([1bd5961
](1bd5961255
)), closes [#259 ](https://github.com/react-native-community/react-native-webview/issues/259 )
2020-06-13 21:28:50 +00:00
Alesandro Ortiz
1bd5961255
fix(android): Add SSL error handling for Android WebView ( #1450 by @thephpjedi)
...
Based on PR #668 . Fixes #259 .
2020-06-13 14:24:56 -07:00
semantic-release-bot
357bc0432a
chore(release): 10.3.0 [skip ci]
...
# [10.3.0](https://github.com/react-native-community/react-native-webview/compare/v10.2.3...v10.3.0 ) (2020-06-13)
### Features
* **android:** Add support for injectedJavaScriptBeforeContentLoaded on Android ([#1099 ](https://github.com/react-native-community/react-native-webview/issues/1099 ) by @SRandazzo and @ [@shirakaba](https://github.com/shirakaba )) ([ac4e05e
](ac4e05e0f2
))
2020-06-13 21:01:07 +00:00
Salvatore Randazzo
ac4e05e0f2
feat(android): Add support for injectedJavaScriptBeforeContentLoaded on Android ( #1099 by @SRandazzo and @ @shirakaba)
2020-06-13 13:54:48 -07:00
semantic-release-bot
b482bbd3a3
chore(release): 10.2.3 [skip ci]
...
## [10.2.3](https://github.com/react-native-community/react-native-webview/compare/v10.2.2...v10.2.3 ) (2020-05-29)
### Bug Fixes
* **windows:** Add postMessage for Windows WebView ([#1263 ](https://github.com/react-native-community/react-native-webview/issues/1263 ) by [@kaiguo](https://github.com/kaiguo )) ([e402e73
](e402e739ea
))
2020-05-29 20:25:34 +00:00
Kai Guo
e402e739ea
fix(windows): Add postMessage for Windows WebView ( #1263 by @kaiguo)
2020-05-29 13:19:11 -07:00
semantic-release-bot
1789b79064
chore(release): 10.2.2 [skip ci]
...
## [10.2.2](https://github.com/react-native-community/react-native-webview/compare/v10.2.1...v10.2.2 ) (2020-05-29)
### Bug Fixes
* **android:** duplicate `setWebChromeClient()` overwrite ([#1417 ](https://github.com/react-native-community/react-native-webview/issues/1417 )) ([2f8c4c5
](2f8c4c5067
))
2020-05-29 16:26:27 +00:00
Jacob Müller
2f8c4c5067
fix(android): duplicate `setWebChromeClient()` overwrite ( #1417 )
2020-05-29 11:21:24 -05:00
semantic-release-bot
d55b25c09e
chore(release): 10.2.1 [skip ci]
...
## [10.2.1](https://github.com/react-native-community/react-native-webview/compare/v10.2.0...v10.2.1 ) (2020-05-29)
### Bug Fixes
* **android:** Fixes black screen on back button press ([#1298 ](https://github.com/react-native-community/react-native-webview/issues/1298 ) by [@michan85](https://github.com/michan85 )) ([0317a4b
](0317a4b4a5
))
* **android:** Improve onLoadProgress consistency ([#1373 ](https://github.com/react-native-community/react-native-webview/issues/1373 ) by [@hojason117](https://github.com/hojason117 )) ([b97d16c
](b97d16c23d
))
2020-05-29 01:09:46 +00:00