react-native-video/windows/ReactNativeVideoCPP/ReactPackageProvider.cpp
Di Da a4fec8eb99
Add support for react-native Windows Cpp/WinRT (#1893)
This also deprecates the old react-native windows implementation
2020-02-25 09:21:06 -05:00

18 lines
573 B
C++

#include "pch.h"
#include "ReactPackageProvider.h"
#if __has_include("ReactPackageProvider.g.cpp")
#include "ReactPackageProvider.g.cpp"
#endif
#include "ReactVideoViewManager.h"
using namespace winrt::Microsoft::ReactNative;
namespace winrt::ReactNativeVideoCPP::implementation {
void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept {
packageBuilder.AddViewManager(L"ReactVideoViewManager", []() { return winrt::make<ReactVideoViewManager>(); });
}
} // namespace winrt::ReactNativeVideoCPP::implementation