You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
#pragma once
|
|
|
|
#include "NativeModules.h"
|
|
#include "RNScreensModule.g.h"
|
|
#include "pch.h"
|
|
#include "winrt/Microsoft.ReactNative.h"
|
|
|
|
namespace winrt::RNScreens::implementation {
|
|
|
|
class RNScreensModule : public RNScreensModuleT<RNScreensModule> {
|
|
public:
|
|
RNScreensModule(Microsoft::ReactNative::IReactContext const &reactContext);
|
|
|
|
static winrt::Windows::Foundation::Collections::IMapView<
|
|
winrt::hstring,
|
|
winrt::Microsoft::ReactNative::ViewManagerPropertyType>
|
|
NativeProps() noexcept;
|
|
void UpdateProperties(winrt::Microsoft::ReactNative::IJSValueReader const
|
|
&propertyMapReader) noexcept;
|
|
|
|
static winrt::Microsoft::ReactNative::ConstantProviderDelegate
|
|
ExportedCustomBubblingEventTypeConstants() noexcept;
|
|
static winrt::Microsoft::ReactNative::ConstantProviderDelegate
|
|
ExportedCustomDirectEventTypeConstants() noexcept;
|
|
|
|
static winrt::Windows::Foundation::Collections::IVectorView<winrt::hstring>
|
|
Commands() noexcept;
|
|
void DispatchCommand(
|
|
winrt::hstring const &commandId,
|
|
winrt::Microsoft::ReactNative::IJSValueReader const
|
|
&commandArgsReader) noexcept;
|
|
|
|
private:
|
|
Microsoft::ReactNative::IReactContext m_reactContext{nullptr};
|
|
};
|
|
} // namespace winrt::RNScreens::implementation
|
|
|
|
namespace winrt::RNScreens::factory_implementation {
|
|
struct RNScreensModule
|
|
: RNScreensModuleT<RNScreensModule, implementation::RNScreensModule> {};
|
|
} // namespace winrt::RNScreens::factory_implementation
|