mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
* Merge web bridge project into webview project * merge in webview sln too * merge in react-native.config.js * fix includes * Bring RN version back to 62.2
25 lines
662 B
C++
25 lines
662 B
C++
#pragma once
|
|
#include "WebBridge.g.h"
|
|
|
|
|
|
namespace winrt::ReactNativeWebView::implementation
|
|
{
|
|
struct WebBridge : WebBridgeT<WebBridge>
|
|
{
|
|
WebBridge() = default;
|
|
|
|
void PostMessage(hstring const& message);
|
|
winrt::event_token MessagePostEvent(Windows::Foundation::EventHandler<hstring> const& handler);
|
|
void MessagePostEvent(winrt::event_token const& token) noexcept;
|
|
|
|
private:
|
|
winrt::event<Windows::Foundation::EventHandler<winrt::hstring>> m_messageEvent;
|
|
};
|
|
}
|
|
namespace winrt::ReactNativeWebView::factory_implementation
|
|
{
|
|
struct WebBridge : WebBridgeT<WebBridge, implementation::WebBridge>
|
|
{
|
|
};
|
|
}
|