Skip to content

Commit cae4d5d

Browse files
Copilotanupriya13
andcommitted
Fix linting issues and remove unnecessary codegen changes
Co-authored-by: anupriya13 <[email protected]>
1 parent 48e7b6c commit cae4d5d

File tree

3 files changed

+561
-561
lines changed

3 files changed

+561
-561
lines changed

vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include <react/renderer/components/scrollview/ScrollViewShadowNode.h>
1515
#pragma warning(pop)
1616

17-
#include <windows.ui.composition.interop.h>
1817
#include <windows.h>
18+
#include <windows.ui.composition.interop.h>
1919

2020
#include <AutoDraw.h>
2121
#include <Fabric/DWriteHelpers.h>
@@ -924,15 +924,15 @@ void ScrollViewComponentView::OnPointerWheelChanged(
924924
const winrt::Microsoft::ReactNative::Composition::Input::PointerRoutedEventArgs &args) noexcept {
925925
auto ppp = args.GetCurrentPoint(-1).Properties();
926926
auto delta = static_cast<float>(ppp.MouseWheelDelta());
927-
927+
928928
// Get the system setting for lines per wheel notch
929929
const int systemLinesPerNotch = GetSystemWheelScrollLines();
930-
930+
931931
// Calculate the number of lines to scroll based on wheel delta and system settings
932932
// Standard Windows wheel delta is 120 per notch
933933
const float notches = delta / 120.0f;
934934
const float linesToScroll = notches * systemLinesPerNotch * c_scrollerLineDelta * m_layoutMetrics.pointScaleFactor;
935-
935+
936936
if (ppp.IsHorizontalMouseWheel()) {
937937
if (delta > 0) {
938938
if (scrollLeft(linesToScroll, true)) {

vnext/codegen/rnwcoreJSI-generated.cpp

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,41 @@ NativeAnimatedTurboModuleCxxSpecJSI::NativeAnimatedTurboModuleCxxSpecJSI(std::sh
952952
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_removeListeners};
953953
methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleCxxSpecJSI_queueAndExecuteBatchedOperations};
954954
}
955+
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
956+
auto result = static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->getColorScheme(
957+
rt
958+
);
959+
return result ? jsi::Value(std::move(*result)) : jsi::Value::null();
960+
}
961+
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
962+
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->setColorScheme(
963+
rt,
964+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
965+
);
966+
return jsi::Value::undefined();
967+
}
968+
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
969+
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->addListener(
970+
rt,
971+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
972+
);
973+
return jsi::Value::undefined();
974+
}
975+
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
976+
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->removeListeners(
977+
rt,
978+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
979+
);
980+
return jsi::Value::undefined();
981+
}
982+
983+
NativeAppearanceCxxSpecJSI::NativeAppearanceCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
984+
: TurboModule("Appearance", jsInvoker) {
985+
methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme};
986+
methodMap_["setColorScheme"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme};
987+
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_addListener};
988+
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners};
989+
}
955990
static jsi::Value __hostFunction_NativeAppStateCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
956991
return static_cast<NativeAppStateCxxSpecJSI *>(&turboModule)->getConstants(
957992
rt
@@ -997,41 +1032,6 @@ NativeAppThemeCxxSpecJSI::NativeAppThemeCxxSpecJSI(std::shared_ptr<CallInvoker>
9971032
: TurboModule("AppTheme", jsInvoker) {
9981033
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppThemeCxxSpecJSI_getConstants};
9991034
}
1000-
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1001-
auto result = static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->getColorScheme(
1002-
rt
1003-
);
1004-
return result ? jsi::Value(std::move(*result)) : jsi::Value::null();
1005-
}
1006-
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1007-
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->setColorScheme(
1008-
rt,
1009-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
1010-
);
1011-
return jsi::Value::undefined();
1012-
}
1013-
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1014-
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->addListener(
1015-
rt,
1016-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
1017-
);
1018-
return jsi::Value::undefined();
1019-
}
1020-
static jsi::Value __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1021-
static_cast<NativeAppearanceCxxSpecJSI *>(&turboModule)->removeListeners(
1022-
rt,
1023-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
1024-
);
1025-
return jsi::Value::undefined();
1026-
}
1027-
1028-
NativeAppearanceCxxSpecJSI::NativeAppearanceCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
1029-
: TurboModule("Appearance", jsInvoker) {
1030-
methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceCxxSpecJSI_getColorScheme};
1031-
methodMap_["setColorScheme"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_setColorScheme};
1032-
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_addListener};
1033-
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceCxxSpecJSI_removeListeners};
1034-
}
10351035
static jsi::Value __hostFunction_NativeBlobModuleCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
10361036
return static_cast<NativeBlobModuleCxxSpecJSI *>(&turboModule)->getConstants(
10371037
rt
@@ -1135,6 +1135,27 @@ NativeClipboardCxxSpecJSI::NativeClipboardCxxSpecJSI(std::shared_ptr<CallInvoker
11351135
methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardCxxSpecJSI_getString};
11361136
methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardCxxSpecJSI_setString};
11371137
}
1138+
static jsi::Value __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1139+
static_cast<NativeDeviceEventManagerCxxSpecJSI *>(&turboModule)->invokeDefaultBackPressHandler(
1140+
rt
1141+
);
1142+
return jsi::Value::undefined();
1143+
}
1144+
1145+
NativeDeviceEventManagerCxxSpecJSI::NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
1146+
: TurboModule("DeviceEventManager", jsInvoker) {
1147+
methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler};
1148+
}
1149+
static jsi::Value __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1150+
return static_cast<NativeDeviceInfoCxxSpecJSI *>(&turboModule)->getConstants(
1151+
rt
1152+
);
1153+
}
1154+
1155+
NativeDeviceInfoCxxSpecJSI::NativeDeviceInfoCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
1156+
: TurboModule("DeviceInfo", jsInvoker) {
1157+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants};
1158+
}
11381159
static jsi::Value __hostFunction_NativeDevLoadingViewCxxSpecJSI_showMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
11391160
static_cast<NativeDevLoadingViewCxxSpecJSI *>(&turboModule)->showMessage(
11401161
rt,
@@ -1278,27 +1299,6 @@ NativeDevSettingsCxxSpecJSI::NativeDevSettingsCxxSpecJSI(std::shared_ptr<CallInv
12781299
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_removeListeners};
12791300
methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsCxxSpecJSI_setIsShakeToShowDevMenuEnabled};
12801301
}
1281-
static jsi::Value __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1282-
static_cast<NativeDeviceEventManagerCxxSpecJSI *>(&turboModule)->invokeDefaultBackPressHandler(
1283-
rt
1284-
);
1285-
return jsi::Value::undefined();
1286-
}
1287-
1288-
NativeDeviceEventManagerCxxSpecJSI::NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
1289-
: TurboModule("DeviceEventManager", jsInvoker) {
1290-
methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerCxxSpecJSI_invokeDefaultBackPressHandler};
1291-
}
1292-
static jsi::Value __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
1293-
return static_cast<NativeDeviceInfoCxxSpecJSI *>(&turboModule)->getConstants(
1294-
rt
1295-
);
1296-
}
1297-
1298-
NativeDeviceInfoCxxSpecJSI::NativeDeviceInfoCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
1299-
: TurboModule("DeviceInfo", jsInvoker) {
1300-
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoCxxSpecJSI_getConstants};
1301-
}
13021302
static jsi::Value __hostFunction_NativeDialogManagerAndroidCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
13031303
return static_cast<NativeDialogManagerAndroidCxxSpecJSI *>(&turboModule)->getConstants(
13041304
rt

0 commit comments

Comments
 (0)