Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Sep 22, 2023
1 parent 2d2b41a commit 701800f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@

namespace winrt::ReactNativeBatteryStatus
{
using winrt::Windows::Devices::Power::Battery;
using winrt::Windows::System::Power::BatteryStatus;
using winrt::Microsoft::ReactNative::JSValue;
using winrt::Microsoft::ReactNative::JSValueObject;
using winrt::Microsoft::ReactNative::ReactContext;
using winrt::Microsoft::ReactNative::ReactPromise;
using winrt::Windows::Devices::Power::Battery;
using winrt::Windows::System::Power::BatteryStatus;

REACT_MODULE(RNWBatteryStatus)
struct RNWBatteryStatus
{
struct RNWBatteryStatus {
REACT_INIT(Initialize)
void Initialize(ReactContext const &reactContext) noexcept
{
Expand Down Expand Up @@ -56,4 +55,4 @@ namespace winrt::ReactNativeBatteryStatus
ReactContext m_reactContext{nullptr};
};

} // namespace winrt::ReactNativeBatteryStatus
} // namespace winrt::ReactNativeBatteryStatus
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "pch.h"

#include "ReactPackageProvider.h"
#if __has_include("ReactPackageProvider.g.cpp")
#include "ReactPackageProvider.g.cpp"
Expand All @@ -15,4 +16,4 @@ namespace winrt::ReactNativeBatteryStatus::implementation
{
AddAttributedModules(packageBuilder, false);
}
} // namespace winrt::ReactNativeBatteryStatus::implementation
} // namespace winrt::ReactNativeBatteryStatus::implementation
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ namespace winrt::ReactNativeBatteryStatus::implementation
{
using winrt::Microsoft::ReactNative::IReactPackageBuilder;

struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
{
struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider> {
ReactPackageProvider() = default;

void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
};
} // namespace winrt::ReactNativeBatteryStatus::implementation
} // namespace winrt::ReactNativeBatteryStatus::implementation

namespace winrt::ReactNativeBatteryStatus::factory_implementation
{
using winrt::Microsoft::ReactNative::IReactPackageBuilder;

struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
} // namespace winrt::ReactNativeBatteryStatus::factory_implementation
struct ReactPackageProvider
: ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {
};
} // namespace winrt::ReactNativeBatteryStatus::factory_implementation
4 changes: 2 additions & 2 deletions incubator/@react-native-webapis/battery-status/windows/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#define NOMINMAX

#include <CppWinRTIncludes.h>
#include <hstring.h>
#include <restrictederrorinfo.h>
#include <unknwn.h>
#include <windows.h>
#include <CppWinRTIncludes.h>
#if __has_include(<VersionMacros.h>)
#include <VersionMacros.h>
#include <VersionMacros.h>
#endif

#include <winrt/Microsoft.ReactNative.h>

0 comments on commit 701800f

Please sign in to comment.