1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow strict
    
  8.  */
    
  9. 
    
  10. import typeof * as ExportsType from './ReactFeatureFlags.native-fb-dynamic';
    
  11. import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
    
  12. 
    
  13. // In xplat, these flags are controlled by GKs. Because most GKs have some
    
  14. // population running in either mode, we should run our tests that way, too,
    
  15. //
    
  16. // Use __VARIANT__ to simulate a GK. The tests will be run twice: once
    
  17. // with the __VARIANT__ set to `true`, and once set to `false`.
    
  18. //
    
  19. // TODO: __VARIANT__ isn't supported for React Native flags yet. You can set the
    
  20. // flag here but it won't be set to `true` in any of our test runs. Need to
    
  21. // update the test configuration.
    
  22. 
    
  23. export const enableUseRefAccessWarning = __VARIANT__;
    
  24. export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
    
  25. export const alwaysThrottleRetries = __VARIANT__;
    
  26. export const useMicrotasksForSchedulingInFabric = __VARIANT__;
    
  27. export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
    
  28. 
    
  29. // Flow magic to verify the exports of this file match the original version.
    
  30. ((((null: any): ExportsType): DynamicFlagsType): ExportsType);