Summary:
This change is the direct results of doing the following:
npx react-native-windows-init --overwrite
Notes: ignore the format warnings below. In this case, the ordering of includes does matter. Missing license is for auto-generated files, so ignore too.
Reviewed By: aigoncharov
Differential Revision: D36775215
fbshipit-source-id: 1cd00ff2bfc258c8505e97dcdbd9cb4365c4acfb
37 lines
1005 B
C++
37 lines
1005 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "App.xaml.g.h"
|
|
|
|
#include <CppWinRTIncludes.h>
|
|
|
|
#ifdef USE_WINUI3
|
|
namespace activation = winrt::Microsoft::UI::Xaml;
|
|
#else
|
|
namespace activation = winrt::Windows::ApplicationModel::Activation;
|
|
#endif
|
|
|
|
namespace winrt::ReactNativeFlipperExample::implementation {
|
|
struct App : AppT<App> {
|
|
App() noexcept;
|
|
void OnLaunched(activation::LaunchActivatedEventArgs const&);
|
|
void OnActivated(
|
|
Windows::ApplicationModel::Activation::IActivatedEventArgs const& e);
|
|
void OnSuspending(
|
|
IInspectable const&,
|
|
Windows::ApplicationModel::SuspendingEventArgs const&);
|
|
void OnNavigationFailed(
|
|
IInspectable const&,
|
|
xaml::Navigation::NavigationFailedEventArgs const&);
|
|
|
|
private:
|
|
using super = AppT<App>;
|
|
};
|
|
} // namespace winrt::ReactNativeFlipperExample::implementation
|