Commit Graph

34 Commits

Author SHA1 Message Date
John Kennedy Mumo d352d147bd
feat(windows): Add POST requests, fixes Windows CI issues, and other QOL (#1926)
* Added POST request support for Windows.

* Cleanup formatting for docs

* Updated test certificate

* Reverted publisher name and fixed password mismatch

* Fixes to Windows tests

* Remove winappdriver install

* Run react-native server in background

* Added url encoded form support

* Added support for custom headers

Co-authored-by: Kennedy Mumo <kemumo@microsoft.com>
2021-04-14 01:40:49 +02:00
Jamon Holmgren c5ae9193bd
chore(ci): Upgrade react-native-windows to 0.62.17 (#1768)
* Upgrade react-native-windows to 0.63.11

* Downgrade to 0.62.17
2021-01-25 22:01:27 +01:00
Tero Paananen b930e25a8f
feat(windows): JS-WebView messaging bridge & multiple WebViews fixes (#1617)
* Manage to build webview using Visual Studio

* WebView in content of UserControl

* Destructor not needed

* Example app tested

* Add messagingEnabled prop

* WebViewBridge

* Message posting

* Store bridge as instance variable

* Use bridge if messagingEnabled

* Free event delegate

* PostMessage api uses string message

* script.notify() usage removed

* Debug log removed

* Bridge reference added

* Base for web allowed object implemented c++/winrt

* Bribge works

* "Microsoft.Windows.CppWinRT" version="2.0.200729.8"

* Update bridge implementation

* version changes

* Reference fix

* WebView prj builds

* yarn lock update

* Platfrom version update

* NuGet package reference updated

* Messaging test added into example app

* Typo fix

* try_as() to as() calls

* WebView.PostMessage() not supported anymore, use injectJavaScript

* Fix WebView.postMessage to work using injectJavascript

* Eval postMessage fix

* postMessage via injectJavascript

* Example fixed to handle postMessage call
2020-10-26 14:01:40 +01: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
Jussi Kinnula 228f10d917
feat(compatibility): Support React Native 0.62 (#1364 by @jussikinnula and @kaiguo)
Co-authored-by: Kai Guo <kaigu@microsoft.com>
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-05-26 20:55:02 -07:00
Kai Guo 20a3f90c0f
fix(windows): Fix windows local asset path (#1335 by @kaiguo)
[skip ci]
2020-05-15 15:34:55 -07:00
Kai Guo ef3ceb24d1
chore(windows): Set up Windows CI (#1358 by @kaiguo)
[skip ci]
2020-05-08 13:24:37 -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
ivari 04f9fb23ba
fix(Android): Ensure each mounted WebView binds their personal onMessage handler (#1301)
* Ensure each mounted WebView binds their personal onMessage handler

* Changed unique ref generation to uuid

Uses `uuid` npm package.
Dashes are removed from the ref for sanity.
2020-04-09 08:05:44 -07:00
Jason Safaiyeh 9732d65289
fix(deps): Update lock file (#1257) 2020-03-17 14:47:21 -07:00
Kai Guo ffee0d4362
feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
Tom Underhill 1e572318ec
feat(macOS): macOS Support (#1164) 2020-02-12 15:39:11 -08:00
Tom Underhill bf1d645716 chore(example): Added three test examples: Alerts, Scrolling, and Background. 2020-01-21 11:39:40 -08:00
dependabot[bot] 07a87131dc chore(deps): bump npm from 6.11.3 to 6.13.4 (#1079)
Bumps [npm](https://github.com/npm/cli) from 6.11.3 to 6.13.4.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v6.11.3...v6.13.4)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-27 11:54:35 +01:00
Thibault Malbranche 85b921ce64
fix(deps): updated dependancies and types (#847)
* wip

* Update WebViewShared.tsx

* Update config.yml
2019-09-19 11:40:51 +02:00
dependabot[bot] 0411345f00 fix(deps): update dependencies to address security issues (#837) 2019-09-03 00:43:37 +02:00
dependabot[bot] 006f82a4d5 chore(deps): bump mixin-deep from 1.3.1 to 1.3.2 (#839)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-03 00:22:55 +02:00
dependabot[bot] 9e31d266bc chore(deps): bump js-yaml from 3.12.2 to 3.13.1 (#836)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.2 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-03 00:19:41 +02:00
dependabot[bot] 18170f1219 chore(deps): bump lodash from 4.17.11 to 4.17.15 (#838)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-03 00:13:41 +02:00
dependabot[bot] ddaaf94a2c chore(deps): bump eslint-utils from 1.3.1 to 1.4.2 (#835)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-03 00:09:51 +02:00
dependabot[bot] aff6c4c7ce chore(deps): bump fstream from 1.0.11 to 1.0.12 (#834)
Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases)
- [Commits](https://github.com/npm/fstream/compare/v1.0.11...v1.0.12)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-03 00:06:58 +02:00
Thibault Malbranche 319a86e236
feat(android): fix overflow issues and match iOS default renders (#472)
fixes #466 #194

* feat(android): fix overflow issues and match iOS default render error and loading behaviour

* Use babel preset typescript through react-native instead of ts-jest

* Update yarn.lock

* Update README.md
2019-04-02 16:05:56 +02: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
Thibault Malbranche 74a20865b0
fix(vulnerability): merge issue (#399)
https://nvd.nist.gov/vuln/detail/CVE-2018-16469
2019-03-07 10:12:35 +01:00
Stanislav Shakirov 67eacd549e chore(ci): fix flow error and update TS type (#395)
set related versions of react and react-native in devDependencies
2019-03-07 09:49:43 +01:00
Malcolm Scruggs fb78d13120 fix(webviewShared.js): Support all valid URI schemes and add testing (#293)
* Change origin whitelist to allow for all valid URIs

- Now supports +, -, and .
- Prevent whitelist from matching when preceded by unwanted characters
- URI must begin with letter
- URI Scheme syntax: https://tools.ietf.org/html/rfc3986#section-3.1

* Add jest testing framework and run it on CI

* Add tests for WebViewShared's createOnShouldStartLoadWithRequest
2019-02-03 19:45:58 +01:00
doomsower 715fe61cc5 feat(typings): Add typescript definitions (#95)
Typescript definitions are based on flow
Tested them a bit in my project
I think couple of event types are screwed in flow definitions (synthetic/non-synthetic are mixed), tried my best to test which events are really received.
2018-11-19 10:59:21 +01:00
Thibault Malbranche 1394c7de06 fix(semantic-release): Added Missong devDeps for CI 2018-10-18 11:42:21 +02:00
Thibault Malbranche 171f778134 fix(semantic-release): Auto increment package.json
Bumped deps version to use new format
2018-10-18 11:31:19 +02:00
Thibault Malbranche 525ebfa06e
chore(ci and npm): Setup CircleCI and semantic-release
Setup CircleCI and semantic-release
2018-10-17 14:54:44 +02:00
Jamon Holmgren 8f4c76704b Minor README tweak 2018-09-08 17:11:32 -07:00
Jamon Holmgren de32a8c14f Remove example repo 2018-07-30 22:00:33 -07:00
Jamon Holmgren be9c217dfe Initial 2018-07-30 20:21:48 -07:00