File tree Expand file tree Collapse file tree
vnext/Microsoft.ReactNative Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55#include " QuirkSettings.h"
66#include " QuirkSettings.g.cpp"
77
8+ #include " QuirkSettings.h"
89#include " React.h"
910#include " ReactPropertyBag.h"
1011
@@ -88,6 +89,11 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableSyncDetachRootViewPro
8889 return propId;
8990}
9091
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+
9197#pragma region IDL interface
9298
9399/* static*/ void QuirkSettings::SetMatchAndroidAndIOSStretchBehavior (
@@ -174,4 +180,8 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> EnableSyncDetachRootViewPro
174180 return properties.Get (EnableSyncDetachRootViewProperty ()).value_or (false );
175181}
176182
183+ /* static*/ bool QuirkSettings::GetEnableFabric (ReactPropertyBag properties) noexcept {
184+ return properties.Get (EnableFabricProperty ()).value_or (false );
185+ }
186+
177187} // namespace winrt::Microsoft::ReactNative::implementation
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ struct QuirkSettings : QuirkSettingsT<QuirkSettings> {
3131 static bool GetSuppressWindowFocusOnViewFocus (winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept ;
3232 static bool GetUseRuntimeScheduler (winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept ;
3333
34+ static bool GetEnableFabric (winrt::Microsoft::ReactNative::ReactPropertyBag properties) noexcept ;
35+
3436 static void SetMapWindowDeactivatedToAppStateInactive (
3537 winrt::Microsoft::ReactNative::ReactPropertyBag properties,
3638 bool value) noexcept ;
You can’t perform that action at this time.
0 commit comments