Commit Graph

744 Commits

Author SHA1 Message Date
Michele Balistreri 9d554dd25b
add compiled file (to do on every rebase) 2022-01-10 15:18:33 +03:00
Roman Volosovskyi ded5475692
Don't allow camera and mic permissions by default.
Notify user about permission request
2022-01-10 14:57:09 +03:00
semantic-release-bot e5dbc5ddc7 chore(release): 11.16.0 [skip ci]
# [11.16.0](https://github.com/react-native-webview/react-native-webview/compare/v11.15.2...v11.16.0) (2022-01-08)

### Features

* **android:** add minimum font size ([#2279](https://github.com/react-native-webview/react-native-webview/issues/2279)) ([a12e231](a12e231121))
2022-01-08 02:49:47 +00:00
theofournier a12e231121
feat(android): add minimum font size (#2279) 2022-01-07 18:48:23 -08:00
semantic-release-bot c42db6b614 chore(release): 11.15.2 [skip ci]
## [11.15.2](https://github.com/react-native-webview/react-native-webview/compare/v11.15.1...v11.15.2) (2022-01-08)

### Bug Fixes

* **windows:** add Visual Studio 2022 toolset (so it doesn't fall back to v140) ([#2297](https://github.com/react-native-webview/react-native-webview/issues/2297)) ([d665456](d665456098))
2022-01-08 01:50:33 +00:00
Burton Rodman d665456098
fix(windows): add Visual Studio 2022 toolset (so it doesn't fall back to v140) (#2297) 2022-01-07 17:48:52 -08:00
semantic-release-bot 6d73d5ba8e chore(release): 11.15.1 [skip ci]
## [11.15.1](https://github.com/react-native-webview/react-native-webview/compare/v11.15.0...v11.15.1) (2022-01-06)

### Bug Fixes

* **macos:** mediaCapturePermissionGrantType is iOS only ([#2313](https://github.com/react-native-webview/react-native-webview/issues/2313)) ([69cafd1](69cafd1d20))
2022-01-06 13:09:50 +00:00
Tommy Nguyen 69cafd1d20
fix(macos): mediaCapturePermissionGrantType is iOS only (#2313) 2022-01-06 14:08:08 +01:00
Alexander Sklar 55b8a7702c
chore:Update node version in CI to 14 (#2312) 2022-01-04 15:02:46 -08:00
semantic-release-bot 4b3a5deaf6 chore(release): 11.15.0 [skip ci]
# [11.15.0](https://github.com/react-native-webview/react-native-webview/compare/v11.14.4...v11.15.0) (2021-11-29)

### Features

* **ios:** Enhanced permissions handling to prevent repetitive prompts. ([#2257](https://github.com/react-native-webview/react-native-webview/issues/2257)) ([cd42aa7](cd42aa7f11))
2021-11-29 09:49:14 +00:00
Franz Bruckhoff cd42aa7f11
feat(ios): Enhanced permissions handling to prevent repetitive prompts. (#2257) 2021-11-29 10:47:28 +01:00
Hyunseung Lee 46ecef868a
chore(docs): Update Reference.md (#2254)
- Fix missing curly braces in onCustomMenuSelecton example
- Fix the missing ``` code closing (markdown) in forceDarkOn example
2021-11-29 10:45:11 +01:00
semantic-release-bot 5a85af4dd1 chore(release): 11.14.4 [skip ci]
## [11.14.4](https://github.com/react-native-webview/react-native-webview/compare/v11.14.3...v11.14.4) (2021-11-26)

### Bug Fixes

* **android:** add null-pointer check for `activity` before creating `RNCWebChromeClient` (closes [#1406](https://github.com/react-native-webview/react-native-webview/issues/1406), [#2190](https://github.com/react-native-webview/react-native-webview/issues/2190)) ([#2240](https://github.com/react-native-webview/react-native-webview/issues/2240)) ([9b14584](9b14584b78))
* **macOS:** failing build due to missing TARGET_OS_OSX ([3d7b9ca](3d7b9cac6e))
2021-11-26 12:52:00 +00:00
Jacob Müller 9b14584b78
fix(android): add null-pointer check for `activity` before creating `RNCWebChromeClient` (closes #1406, #2190) (#2240)
* fix(android): add null-pointer check for activity before creating web chrome client with full-screen video support

* fix(android): reference error

* fix(android): add null-pointer check for activity before creating web chrome client with full-screen video support

* fix(android): reference error
2021-11-26 13:50:04 +01:00
Samuel 3d7b9cac6e
fix(macOS): failing build due to missing TARGET_OS_OSX 2021-11-26 13:48:56 +01:00
semantic-release-bot 14cde20b24 chore(release): 11.14.3 [skip ci]
## [11.14.3](https://github.com/react-native-webview/react-native-webview/compare/v11.14.2...v11.14.3) (2021-11-12)

### Bug Fixes

* **windows:** Simplify project structure, fix arm64 ([#2211](https://github.com/react-native-webview/react-native-webview/issues/2211)) ([aafa899](aafa8991f5))
2021-11-12 18:44:57 +00:00
Alexander Sklar aafa8991f5
fix(windows): Simplify project structure, fix arm64 (#2211)
* Merge web bridge project into webview project

* merge in webview sln too

* merge in react-native.config.js

* fix includes

* Bring RN version back to 62.2
2021-11-12 10:41:40 -08:00
Thibault Malbranche 1de78e5e14 chore(yarn.lock): run yarn to clean it 2021-11-05 20:48:48 +01:00
semantic-release-bot 03a4dc8cb1 chore(release): 11.14.2 [skip ci]
## [11.14.2](https://github.com/react-native-webview/react-native-webview/compare/v11.14.1...v11.14.2) (2021-10-28)

### Bug Fixes

* **dependencies:** Simplify react-native version management ([f8a1ba2](f8a1ba2ebc)), closes [/github.com/react-navigation/react-navigation/blob/main/packages/native/package.json#L56-L59](https://github.com//github.com/react-navigation/react-navigation/blob/main/packages/native/package.json/issues/L56-L59)
2021-10-28 22:33:19 +00:00
Mitchell cead980c54
chore(docs): Update link in Custom-iOS.md (#2202) 2021-10-29 00:31:59 +02:00
Archie b9624264a3
chore(docs): Fixed typo (#2214) 2021-10-29 00:31:23 +02:00
Thibault Malbranche f8a1ba2ebc fix(dependencies): Simplify react-native version management
Let's just do the same as "react-navigation":
https://github.com/react-navigation/react-navigation/blob/main/packages/native/package.json#L56-L59
2021-10-29 00:26:47 +02:00
semantic-release-bot 4d32d1cbd1 chore(release): 11.14.1 [skip ci]
## [11.14.1](https://github.com/react-native-webview/react-native-webview/compare/v11.14.0...v11.14.1) (2021-10-15)

### Bug Fixes

* **iOS:** compilation error ([c036706](c03670685b))
2021-10-15 09:46:11 +00:00
Li Junjie c03670685b
fix(iOS): compilation error
Modification and compilation failed.
2021-10-15 11:38:29 +02:00
Scott Batson e1fc730eed
Allow custom menu items for selection menu (#2101)
remove unused vars

use gesture handler

change callback name, pass selected text back

do not use deprecate setTarget

do not call super on methodSignatureForSelector twice

add checks for custom menu items and callback

make custom params optional

add custom menu items outside of initWithFrame

require key and label for menuItems

fix typo
2021-10-08 08:38:43 +02:00
semantic-release-bot af418ecae4 chore(release): 11.14.0 [skip ci]
# [11.14.0](https://github.com/react-native-webview/react-native-webview/compare/v11.13.1...v11.14.0) (2021-09-30)

### Features

* **auth:** Basic Authentication Support ([#1467](https://github.com/react-native-webview/react-native-webview/issues/1467)) ([0c42a98](0c42a9812e))
2021-09-30 16:06:34 +00:00
iwashi1t 0c42a9812e
feat(auth): Basic Authentication Support (#1467)
Some people prefer using this new prop over the http://username:password@example.com syntax, now webview supports both
2021-09-30 18:03:34 +02:00
semantic-release-bot c74c1fd113 chore(release): 11.13.1 [skip ci]
## [11.13.1](https://github.com/react-native-webview/react-native-webview/compare/v11.13.0...v11.13.1) (2021-09-27)

### Bug Fixes

* **ci:** Upgrade to node 14 ([0b0a406](0b0a4069c8))
* **jcenter:** remove jcenter ([#2178](https://github.com/react-native-webview/react-native-webview/issues/2178)) ([283c18b](283c18b379))
2021-09-27 14:51:31 +00:00
Orkhan Alikhanov 854e26643b
Add missing ignoreSilentHardwareSwitch prop (#2154) 2021-09-27 16:47:56 +02:00
Thibault Malbranche 0b0a4069c8
fix(ci): Upgrade to node 14 2021-09-27 16:45:42 +02:00
Kirill 283c18b379
fix(jcenter): remove jcenter (#2178)
Builds will no longer be able to resolve artifacts from JCenter after February 1st, 2022 because jcenter servers shut down

so, i remove jcenter and update react-native (since 0.65.1 they don't use jcenter)

Co-authored-by: bibazavr <lebedevki@lad24.ru>
2021-09-27 13:50:52 +02:00
semantic-release-bot cb1c3f459f chore(release): 11.13.0 [skip ci]
# [11.13.0](https://github.com/react-native-webview/react-native-webview/compare/v11.12.0...v11.13.0) (2021-08-09)

### Features

* **onError:** Add support for preventDefault when using onError method ([#1706](https://github.com/react-native-webview/react-native-webview/issues/1706)) ([404e3e6](404e3e69e2))
2021-08-09 21:40:48 +00:00
Sashka 404e3e69e2
feat(onError): Add support for preventDefault when using onError method (#1706)
* Add event.isDefaultPrevented() check within onError method

* Update onError in the reference regarding preventDefault

* Fix return values in the 'onError' method

* Minor update for Reference.md in "onError" section

* Update WebView.windows.tsx

* Update WebView.windows.tsx

* Update WebView.android.tsx

* Update WebView.ios.tsx

* Update WebView.macos.tsx

Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
2021-08-09 23:39:15 +02:00
semantic-release-bot 038b11ccce chore(release): 11.12.0 [skip ci]
# [11.12.0](https://github.com/react-native-webview/react-native-webview/compare/v11.11.0...v11.12.0) (2021-08-09)

### Features

* **android:** force dark mode ([#2063](https://github.com/react-native-webview/react-native-webview/issues/2063)) ([19980d8](19980d888d))
2021-08-09 17:58:59 +00:00
Cloud Zhang 19980d888d
feat(android): force dark mode (#2063)
Co-authored-by: 张 云 <zhangyun@sidechef.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-08-09 19:57:33 +02:00
semantic-release-bot 2c541131db chore(release): 11.11.0 [skip ci]
# [11.11.0](https://github.com/react-native-webview/react-native-webview/compare/v11.10.0...v11.11.0) (2021-08-09)

### Features

* **deps:** Remove upper bound on React Native peerdep ([#2054](https://github.com/react-native-webview/react-native-webview/issues/2054)) ([6cd000e](6cd000ec9d)), closes [#1935](https://github.com/react-native-webview/react-native-webview/issues/1935)
2021-08-09 17:45:57 +00:00
Asuki Kono 95da0aa8d2
chore(docs): Update explanation to open remote debug window (#2052) 2021-08-09 19:44:28 +02:00
Stefan Wrobel 6cd000ec9d
feat(deps): Remove upper bound on React Native peerdep (#2054)
Fixes #1935
2021-08-09 19:43:29 +02:00
semantic-release-bot ea67c37531 chore(release): 11.10.0 [skip ci]
# [11.10.0](https://github.com/react-native-webview/react-native-webview/compare/v11.9.0...v11.10.0) (2021-08-09)

### Features

* **android:** remove unnecessary buildToolsVersion ([#2023](https://github.com/react-native-webview/react-native-webview/issues/2023)) ([998b211](998b211b94))
2021-08-09 17:42:45 +00:00
Dulmandakh 998b211b94
feat(android): remove unnecessary buildToolsVersion (#2023)
buildToolsVersion is no longer necessary, it'll default to Android Gradle Plugin version specification
2021-08-09 19:41:18 +02:00
semantic-release-bot 7b9d50bed5 chore(release): 11.9.0 [skip ci]
# [11.9.0](https://github.com/react-native-webview/react-native-webview/compare/v11.8.0...v11.9.0) (2021-08-09)

### Features

* **android:** add props to control pinch to zoom and internal zoom controls ([#2113](https://github.com/react-native-webview/react-native-webview/issues/2113)) ([b92b986](b92b98637c))
2021-08-09 17:40:02 +00:00
Lucas Alves e0f22b7db0
chore(docs): Update content in readme pt-br (#2090) 2021-08-09 19:38:44 +02:00
Stanciu Bogdan Mircea b92b98637c
feat(android): add props to control pinch to zoom and internal zoom controls (#2113)
Co-authored-by: Mircea Bogdan Stanciu <mirceabogdanstanciu@gmail.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-08-09 19:37:44 +02:00
semantic-release-bot 2ed1f247fe chore(release): 11.8.0 [skip ci]
# [11.8.0](https://github.com/react-native-webview/react-native-webview/compare/v11.7.0...v11.8.0) (2021-08-09)

### Features

* **apple:** userAgent can be changed at runtime ([#2116](https://github.com/react-native-webview/react-native-webview/issues/2116)) ([2fc86f9](2fc86f9d39))
2021-08-09 17:21:39 +00:00
Tyler Coffman 2fc86f9d39
feat(apple): userAgent can be changed at runtime (#2116)
Make it so that if you change the userAgent prop, this change is propagated to
the native webview on iOS/macOS. Android already has this functionality.

Sometimes it is useful for WebView apps to be able to change their user agent
dynamically to communicate custom things to the web app they are hosting.
Since we can't add custom headers to every single request made by the webview,
the user agent can be used to send things like feature flags to the web app, so
it can have the appropriate behavior depending on what state the mobile app is
in.
2021-08-09 19:20:04 +02:00
semantic-release-bot 9d82aec237 chore(release): 11.7.0 [skip ci]
# [11.7.0](https://github.com/react-native-webview/react-native-webview/compare/v11.6.6...v11.7.0) (2021-08-09)

### Features

* add prop to allow nested scroll on android ([#2056](https://github.com/react-native-webview/react-native-webview/issues/2056)) ([6bac272](6bac272a5f))
2021-08-09 17:15:53 +00:00
Rodolphe Lemasquerier 6bac272a5f
feat: add prop to allow nested scroll on android (#2056)
* feat: add prop to allow nested scroll on android

When set to true, this prop allow to scroll inside the webview when the webview is inside a scrollview on android

* docs: nestedScrollEnabled prop usage
2021-08-09 19:14:26 +02:00
semantic-release-bot c1152ca850 chore(release): 11.6.6 [skip ci]
## [11.6.6](https://github.com/react-native-webview/react-native-webview/compare/v11.6.5...v11.6.6) (2021-08-05)

### Bug Fixes

* **windows:** Navigation to ms-appdata and ms-appx-web local file request ([#2098](https://github.com/react-native-webview/react-native-webview/issues/2098)) ([4f89408](4f894083ca))
2021-08-05 08:11:00 +00:00
Tero Paananen 4f894083ca
fix(windows): Navigation to ms-appdata and ms-appx-web local file request (#2098) 2021-08-05 01:05:41 -07:00
semantic-release-bot ecd4cc63e6 chore(release): 11.6.5 [skip ci]
## [11.6.5](https://github.com/react-native-webview/react-native-webview/compare/v11.6.4...v11.6.5) (2021-07-01)

### Bug Fixes

* **logs:** remove warning logs for common/handled error events. ([#2043](https://github.com/react-native-webview/react-native-webview/issues/2043)) ([279d6ae](279d6ae98c))
2021-07-01 12:34:48 +00:00