Commit Graph

28 Commits

Author SHA1 Message Date
Tommy Nguyen 69cafd1d20
fix(macos): mediaCapturePermissionGrantType is iOS only (#2313) 2022-01-06 14:08:08 +01:00
Franz Bruckhoff cd42aa7f11
feat(ios): Enhanced permissions handling to prevent repetitive prompts. (#2257) 2021-11-29 10:47:28 +01:00
Samuel 3d7b9cac6e
fix(macOS): failing build due to missing TARGET_OS_OSX 2021-11-26 13:48:56 +01: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
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
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
Nizam Moidu 30685edda0
feat(ios): Apple Pay support (#1946)
* Apple Pay support in ios Webview

* Apple Pay example

* rename prop to enableApplePay

* disable js evaluation if enableApplePay set to true

* documentation update for apple pay support
2021-05-21 00:17:24 +02:00
Ivari Tölp 7decc5cff1
feat(ios): Add support for `limitsNavigationsToAppBoundDomains` (#1662)
* Add support for iOS-specific prop `limitsNavigationsToAppBoundDomains`

* Add check for `limitsNavigationsToAppBoundDomains` property

Turns out that @available is simply bugged right
now in Xcode and will pretty much always return
`true`. Adding a check for the property actually
existing as well will avoid iOS <14 crashing horribly.

* Improve documentation

Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-03-17 00:29:40 +01:00
Andrew Goodale 85dfca894f
fix(ios): Add missing nullability specifiers; fix if block warning (#1898) 2021-03-17 00:23:46 +01:00
sunzhongliang 30a53d9480
fix(iOS): webview retain cycle (#1916)
Co-authored-by: sunzhongliang <sunzhongliang@innotechx.com>
2021-03-15 10:19:45 +01:00
nikitawani07 1f089baa40
fix(iOS): Send cookies with resource requests (#1803)
* iOS cookie available for resource requests

* Missig brace added

Co-authored-by: niwani <niwani@microsoft.com>
2021-03-10 10:11:09 +01:00
Bill Xie 283fe124b3
fix(ios): error on iOS < 13(#1843)
* fix:iOS13  scrollView.automaticallyAdjustsScrollIndicatorInsets default value YES which make the webview vertical indicator position in wrong offset

* added types and doc

* fix: breaking bug for props not include under iOS13

Co-authored-by: BillHsieh <xietian@meitunmama.com>
Co-authored-by: xietian <xietian@innotechx.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
2021-01-25 13:54:42 +01:00
RecianuCiprian 8d098efce7
feat(iOS & MacOS): allowUniversalAccessFromFileURLs property(#1730)
* Added allowUniversalAccessFromFileURLs property to iOS and macOS
Updated the types to include allowUniversalAccessFromFileURLs and allowFileAccessFromFileURLs for iOS and macOS
Updated the Reference.md to include in the allowUniversalAccessFromFileURLs section iOS and macOS

* Updated platform in the type definition
2021-01-20 19:31:42 +01:00
Bill Xie d46a6d3c69
feat(iOS 13+): automaticallyAdjustsScrollIndicatorInsets prop (#1077)
* fix:iOS13  scrollView.automaticallyAdjustsScrollIndicatorInsets default value YES which make the webview vertical indicator position in wrong offset

* added types and doc

Co-authored-by: BillHsieh <xietian@meitunmama.com>
Co-authored-by: xietian <xietian@innotechx.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
2021-01-20 19:09:27 +01:00
Joshua Smith 4b479d6d3f
chore(docs): update repo references with new repo location (#1657)
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-01-20 18:49:11 +01:00
Jacob Müller d338cae57a
fix(iOS): restore cookie handling for iOS <= 10 (#1728) 2021-01-13 14:55:36 +01:00
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
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
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
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
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
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
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
trcoffman 91df544fae
feat(webview): Allow javascript to open windows automatically (#1409 by @trcoffman)
[skip ci]
2020-05-28 09:54:20 -07:00
Penar Musaraj 9240536afa
fix(iOS): Trigger _onContentProcessDidTerminate when removing webview from superview (#1378 by @pmusaraj)
[skip ci]
2020-05-26 14:53:08 -07:00
trcoffman a6010d93e0
feat(iOS): Add onFileDownload callback (#1214)
`onFileDownload` is called with the URL that you can use to download the file.
When RNCWebView detects that the HTTP response should result in a file download,
`onFileDownload` is called. The client can then provide code to download
the file.

RNCWebView determines that a file download should take place if either of the
following is true:
1. The HTTP response contains a `Content-Disposition` header that is of type
  'attachment'
2. The MIME type of the response cannot be rendered by the iOS WebView
2020-04-29 09:09:22 -07:00
Eloy Durán 2d9b0803e0
feat(macOS): Make podspec compatible with macOS (#1328)
* [apple] Move iOS/macOS src into common apple dir

* [apple] Enable macOS as platform in podspec

* [example] Use CocoaPods & auto-linking on macOS

* [docs] Update setup for macOS

* [package] Include apple dir in distribution
2020-04-24 19:54:17 +02:00