react-native-webview/example/windows/WebViewWindows
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
..
Assets feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
ReactAssets feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
App.cpp feat(compatibility): Support React Native 0.62 (#1364 by @jussikinnula and @kaiguo) 2020-05-26 20:55:02 -07:00
App.h feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
App.idl feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
App.xaml feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
Package.appxmanifest chore(windows): Set up Windows CI (#1358 by @kaiguo) 2020-05-08 13:24:37 -07:00
PropertySheet.props feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
ReactPackageProvider.cpp feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
ReactPackageProvider.h feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
WebViewWindows.vcxproj feat(windows): JS-WebView messaging bridge & multiple WebViews fixes (#1617) 2020-10-26 14:01:40 +01:00
WebViewWindows.vcxproj.filters chore(windows): Set up Windows CI (#1358 by @kaiguo) 2020-05-08 13:24:37 -07:00
WebViewWindows_TemporaryKey.pfx feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
packages.config feat(windows): JS-WebView messaging bridge & multiple WebViews fixes (#1617) 2020-10-26 14:01:40 +01:00
pch.cpp feat(Windows): Windows support! (#1220) 2020-03-16 19:30:25 -07:00
pch.h chore(windows): Add a .gitattributes to fix line endings across myriad files. (#1431 by @trcoffman) 2020-06-16 11:53:22 -07:00