@@ -64,6 +64,12 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> MapWindowDeactivatedToAppSt
6464 properties.Set (MapWindowDeactivatedToAppStateInactiveProperty (), value);
6565}
6666
67+ /* static*/ void QuirkSettings::SetEnableSyncDetachRootView (
68+ winrt::Microsoft::ReactNative::ReactPropertyBag properties,
69+ bool value) noexcept {
70+ properties.Set (EnableSyncDetachRootViewProperty (), value);
71+ }
72+
6773winrt::Microsoft::ReactNative::ReactPropertyId<bool > SuppressWindowFocusOnViewFocusProperty () noexcept {
6874 winrt::Microsoft::ReactNative::ReactPropertyId<bool > propId{
6975 L" ReactNative.QuirkSettings" , L" SuppressWindowFocusOnViewFocus" };
@@ -77,6 +83,12 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> UseRuntimeSchedulerProperty
7783 return propId;
7884}
7985
86+ winrt::Microsoft::ReactNative::ReactPropertyId<bool > EnableSyncDetachRootViewProperty () noexcept {
87+ static winrt::Microsoft::ReactNative::ReactPropertyId<bool > propId{
88+ L" ReactNative.QuirkSettings" , L" EnableSyncDetachRootView" };
89+ return propId;
90+ }
91+
8092#pragma region IDL interface
8193
8294/* static*/ void QuirkSettings::SetMatchAndroidAndIOSStretchBehavior (
@@ -121,6 +133,12 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> UseRuntimeSchedulerProperty
121133 ReactPropertyBag (settings.Properties ()).Set (UseRuntimeSchedulerProperty (), value);
122134}
123135
136+ /* static*/ void QuirkSettings::SetEnableSyncDetachRootView (
137+ winrt::Microsoft::ReactNative::ReactInstanceSettings settings,
138+ bool value) noexcept {
139+ ReactPropertyBag (settings.Properties ()).Set (EnableSyncDetachRootViewProperty (), value);
140+ }
141+
124142#pragma endregion IDL interface
125143
126144/* static*/ bool QuirkSettings::GetMatchAndroidAndIOSStretchBehavior (ReactPropertyBag properties) noexcept {
@@ -153,4 +171,8 @@ winrt::Microsoft::ReactNative::ReactPropertyId<bool> UseRuntimeSchedulerProperty
153171 return properties.Get (UseRuntimeSchedulerProperty ()).value_or (true );
154172}
155173
174+ /* static*/ bool QuirkSettings::GetEnableSyncDetachRootView (ReactPropertyBag properties) noexcept {
175+ return properties.Get (EnableSyncDetachRootViewProperty ()).value_or (false );
176+ }
177+
156178} // namespace winrt::Microsoft::ReactNative::implementation
0 commit comments