Commit Graph

9 Commits

Author SHA1 Message Date
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
Mathieu Bruguier 9dcd108b1f
fix(types): Update Typescript definition file (#1597) 2020-08-31 15:18:57 +02: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
Tommy Nguyen be027dad1f fix(types): Export WebViewMessageEvent, WebViewNavigation for external use (#855) 2019-09-09 16:53:35 +02:00
DemMarcupan 6f053bad7b feat(focus): Add functionality to imperatively focus webview (#567)
*  - add focus functionality for devices without touch screen
 (faced problem while developing for android TV, cause there only remote controller for device)

* Reimplement as a ref method.

*  - remove redundant requestFocus
2019-08-06 10:56:59 +02:00
James Cleveland ef709aa82b fix(types): export WebViewProps for external use (#457) 2019-03-27 09:25:59 +01:00
Vladimir Timofeev e2adacc977 fix(typings): incorrect package.json + fix d.ts(#453)
* fix(typings): fix syntax of main d.ts file

* fix(typings): point typings field in package.json to actual d.ts file
2019-03-26 01:31:50 +01:00
Sergei Butko 54268ff469 fix(types): Add missing type definitions of the methods (#442)
Also made the exported component a class (to add methods) and made him extend Component instead of ComponentType.
2019-03-21 14:29:57 +00:00
Thibault Malbranche 453b7dd3a0
feat(typescript): Source code rewrite using typescript (#425)
Rewrote the whole repository into typescript. This will provide way better and up to date documentation. This should also add some safety for people contributing 😄 .
Flow types were not working until now which is why this PR doesn't have them but feel free to PR.

This also fixes #384 #435 #206 #171 #168.
2019-03-20 12:35:13 +00:00