49 Commits

Author SHA1 Message Date
Jordan Sexton
92c20581ae feat(toggle scroll bar): added new props showsVerticalScrollIndicator / showsHorizontalScrollIndicator (#250) 2019-02-12 14:47:24 +01:00
Thibault Malbranche
6c26a892b4 updated type for ViewManagerName 2019-02-05 15:56:34 +01:00
Thibault Malbranche
263fc5ec3c fix(iOS/android getViewManagerConfig): Fix crash with react-native < 0.58 2019-02-05 15:50:40 +01:00
Thibault Malbranche
4c8024047b
fix(UIWebview): Deprecate UIWebView and add link to issue (#313)
* Update WebView.ios.js

* Update WebView.ios.js
2019-02-04 18:58:48 +01:00
Thibault Malbranche
4a4ccd8141
fix(android/iOS): Fixed react-native 0.58 warnings (#311) 2019-02-04 14:13:14 +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
Thibault Malbranche
d5fc028383 fix(PostMessage): Renamed ReactNativeWebview to ReactNativeWebView
fixes #304
2019-02-01 22:04:11 +01:00
Thibault Malbranche
f3bdab5a22
feat(Android/iOS postMessage): refactoring the old postMessage implementation (#303)
fixes #29
fixes #272
fixes #221
fixes #105
fixes #66

BREAKING CHANGE: Communication from webview to react-native has been completely rewritten. React-native-webview will not use or override window.postMessage anymore. Reasons behind these changes can be found throughout so many issues that it made sense to go that way.

Instead of using window.postMessage(data, *), please now use window.ReactNativeWebView.postMessage(data).

Side note: if you wish to keep compatibility with the old version when you upgrade, you can use the injectedJavascript prop to do that:

const injectedJavascript = `(function() {
  window.postMessage = function(data) {
    window.ReactNativeWebView.postMessage(data);
  };
})()`;

Huge thanks to @jordansexton and @KoenLav!
2019-02-01 18:37:28 +01:00
Michael Diarmid
83ce79ff89 feat(iOS/Android): Add cacheEnabled prop (#152)
Added a new cacheEnabled prop to toggle Android & iOS webview caching behavior.

BREAKING CHANGE:  This change makes caching enabled by default when previously there was no caching behavior which may cause unexpected behaviour changes in your existing implementations.
2019-01-30 10:32:46 +01:00
Margaret
d3fc5e6cde feat(android props): Add androidHardwareAccelerationDisabled prop (#265)
* add test code for disable hardware acceleration

* add interface to disable android hardware acceleration

* Update index.d.ts
2019-01-22 10:21:10 +01:00
José Luis Pereira
62f871c186 feat(WKWebview): Add incognito prop to iOS WKWebview
Allows the webview to be opened with an ephemeral data storage.
2019-01-11 14:59:03 +01:00
kylemantesso
afadc62ada feat(WKWebview): Add shared process pool so cookies and localStorage are shared across webviews in iOS (#138)
* fix(WKWebview): [iOS] Add shared process pool so cookies and localStorage are shared across webviews (#68)

* Add optional shared process pool

BREAKING CHANGE: useSharedProcessPool prop is set to true by default. If you want the old behavior, please use useSharedProcessPool={false}
2019-01-07 15:19:32 +01:00
Thibault Malbranche
b1b662628e feat(Android Webview): Support onShouldStartLoadWithRequest on Android (#107)
This PR adds support for `onShouldStartLoadWithRequest` on android.

The initial PR was #59

The issue for this PR is: #106

fixes #106
2018-11-30 02:59:12 +01:00
Jermaine Oosterling
731dd03fc6 feat(WKWebView): [ios] Add allowsLinkPreview property to WKWebView (#170)
* [ios] Add ‘allowsLinkPreview’ property to iOS WKWebView.

* Add divider in docs

* Typo: add hyphen -> _allowsLinkPreview
2018-11-25 11:17:28 +01:00
wiscat
4870e1f06a feat(WKWebview): [ios] Add 'pagingEnabled' property to the iOS WKWebview (#165) 2018-11-22 13:58:07 +01:00
Andrei Pfeiffer
752a5b295a feat(Android): Support Android file upload (#60)
Fixes #33 

I could really use some help from an Android developer on this one, because I just "made it work", don't know how to "make it work good".

Some things that should be reviewed:

- [ ] validate Android 5.0 devices (my emulator work, but outputs some weird sounds; a Galaxy 4 I tested on crashes)
- [ ] validate Android 5.1 devices (emulator works, couldn't find a real device)
- [ ] how to handle File Extensions? (https://www.w3schools.com/tags/att_input_accept.asp)

I'm sure that there's more refactoring to be done, so any help and advice would be appreciated.
2018-11-21 11:46:43 +01:00
Bae Hyeonseung
2ec5fa514e feat(WKWebview): Add 'userAgent' property to the iOS WKWebView. (#112)
* Add 'userAgent' property to the iOS WKWebView

* Update 'userAgent' reference docs.
2018-11-19 11:13:31 +01:00
Bae Hyeonseung
7f35344632 feat(WKWebview): [iOS] Add 'allowsBackForwardNavigationGestures' property (#97) 2018-10-21 23:12:59 +02:00
marcelkalveram
34512f3c38 feat(New WebView Prop): [iOS] add hideKeyboardAccessoryView option (#67)
* add hideKeyboardAccessoryView option

* add hideKeyboardAccessoryView prop to reference
2018-10-17 16:59:19 +02:00
Thibault Malbranche
2c0059ff61
feat(New Webview Prop): Added Android overscroll property (#54) 2018-10-17 16:48:19 +02:00
黎明
b5aaf5c800 feat(webview props) onLoadProgresss property (#53)
* Added the onLoadProgress property to the iOS wkwebview and Android webview
2018-10-17 15:08:52 +02:00
Thibault Malbranche
0e34982477 Done 2018-10-13 00:40:20 +02:00
Thibault Malbranche
aca9c2e31f Removed useless state and cleaned componentWillMount 2018-09-19 01:33:57 +02:00
Thibault Malbranche
71cc1042f8 Merge branch 'cleaning-ios-wkwebview' into renaming/rct-rnc-android 2018-09-19 01:25:56 +02:00
Thibault Malbranche
1ab70c8795 Merge branch 'renaming/rct-rnc' into cleaning-ios-wkwebview 2018-09-19 01:25:25 +02:00
Thibault Malbranche
7df0ccd24e Updated ref to use react.createRef 2018-09-19 01:25:02 +02:00
Thibault Malbranche
56650cfe5c Changed ref to use react.createRef 2018-09-19 01:24:06 +02:00
Thibault Malbranche
fcc35cec09 Renamed RNC on android too to stay consistent with iOS 2018-09-19 01:19:06 +02:00
Thibault Malbranche
68ca85141a Removed extra file 2018-09-19 01:11:33 +02:00
Thibault Malbranche
2dea7b53ce RNC changes ios JS 2018-09-19 00:46:19 +02:00
Thibault Malbranche
e3127bb066 fix flow 2018-09-14 01:22:47 +02:00
Thibault Malbranche
10054e10ab Added flow type 2018-09-14 01:14:31 +02:00
Thibault Malbranche
62b560a546 imported 0c576ef84a 2018-09-14 01:09:39 +02:00
empyrical
22686d0371
Re-organize platform-specific types 2018-09-10 18:46:07 -06:00
empyrical
795dffb6a7
Clean up flow types 2018-09-10 18:46:07 -06:00
empyrical
133f1e36bc
Add WebView Flow types 2018-09-10 18:46:07 -06:00
Jamon Holmgren
236e613421 Defaults to WKWebView instead of UIWebView 2018-09-09 16:15:00 -07:00
Jamon Holmgren
642620dd98 WIP: WebView extraction - Rename android from RNC to RCT 2018-09-08 17:01:05 -07:00
Jamon Holmgren
922151ec42 WIP: WebView extraction - iOS working both UI and WK versions 2018-09-08 14:50:13 -07:00
Jamon Holmgren
2fd5612422 WIP: Migrating to WKWebView 2018-09-08 14:11:42 -07:00
Jamon Holmgren
26d2f5ced4 WIP: iOS WKWebView 2018-09-08 10:42:02 -07:00
Jamon Holmgren
52fbf09e29 🦅 WIP: Update to WKWebView - Replace UIWebView with WKWebView 2018-09-07 21:11:49 -07:00
Jamon Holmgren
86ec597ea2 🦉 WIP: Update to WKWebView - WebView.ios.js 2018-09-07 21:00:50 -07:00
Jamon Holmgren
de777b9533 🦉 WIP: Update to WKWebView - WebView.android.js 2018-09-07 20:49:31 -07:00
Jamon Holmgren
bc3be5ecaa Removes copyright notices from file headers 2018-08-15 19:25:15 -07:00
Jamon Holmgren
d1f442cc51 WIP: Android 2018-08-07 23:02:40 -07:00
Jamon Holmgren
bd2c3bc8c2 iOS Webview now using local RNCWebView 2018-08-03 00:12:40 -07:00
Jamon Holmgren
52ba380e4a Added RNCWebViewManager to xcode proj 2018-08-02 23:52:31 -07:00
Jamon Holmgren
af0057a321 Reshuffling 2018-08-02 21:41:20 -07:00