Commit Graph

27 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 4a4ccd8141
fix(android/iOS): Fixed react-native 0.58 warnings (#311) 2019-02-04 14:13:14 +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
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
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
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 aca9c2e31f Removed useless state and cleaned componentWillMount 2018-09-19 01:33:57 +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 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 642620dd98 WIP: WebView extraction - Rename android from RNC to RCT 2018-09-08 17:01:05 -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 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 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