Skip to content

Commit ad0dbfb

Browse files
Copilotanupriya13
andcommitted
Fix missing GetEnableFabric implementation in QuirkSettings
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
1 parent 7401fe8 commit ad0dbfb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

vnext/Microsoft.ReactNative/QuirkSettings.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableSyncDetachRootViewPro
8989
return propId;
9090
}
9191

92+
winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableFabricProperty() noexcept {
93+
static winrt::Microsoft::ReactNative::ReactPropertyId<bool> propId{L"ReactNative.QuirkSettings", L"EnableFabric"};
94+
return propId;
95+
}
96+
9297
#pragma region IDL interface
9398

9499
/*static*/ void QuirkSettings::SetMatchAndroidAndIOSStretchBehavior(
@@ -175,4 +180,8 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableSyncDetachRootViewPro
175180
return properties.Get(EnableSyncDetachRootViewProperty()).value_or(false);
176181
}
177182

183+
/*static*/ bool QuirkSettings::GetEnableFabric(ReactPropertyBag properties) noexcept {
184+
return properties.Get(EnableFabricProperty()).value_or(false);
185+
}
186+
178187
} // namespace winrt::Microsoft::ReactNative::implementation

0 commit comments

Comments
 (0)