Skip to content

Commit

Permalink
Enable disableStringRefs and enableRefAsProp for React Native (Me…
Browse files Browse the repository at this point in the history
…ta) (#29177)

## Summary

Enables the `disableStringRefs` and `enableRefAsProp` feature flags for
React Native (Meta).

## How did you test this change?

```
$ yarn test
$ yarn flow fabric
```
  • Loading branch information
yungsters authored May 21, 2024
1 parent 55dd0b1 commit 7621466
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
export const alwaysThrottleRetries = __VARIANT__;
export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__;
export const disableDefaultPropsExceptForClasses = __VARIANT__;
export const disableStringRefs = __VARIANT__;
export const enableAddPropertiesFastPath = __VARIANT__;
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
export const enableFastJSX = __VARIANT__;
export const enableInfiniteRenderLoopDetection = __VARIANT__;
export const enableRefAsProp = __VARIANT__;
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
5 changes: 3 additions & 2 deletions packages/shared/forks/ReactFeatureFlags.native-fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ export const {
alwaysThrottleRetries,
consoleManagedByDevToolsDuringStrictMode,
disableDefaultPropsExceptForClasses,
disableStringRefs,
enableAddPropertiesFastPath,
enableDeferRootSchedulingToMicrotask,
enableFastJSX,
enableInfiniteRenderLoopDetection,
enableRefAsProp,
passChildrenWhenCloningPersistedNodes,
} = dynamicFlags;

Expand Down Expand Up @@ -95,6 +93,9 @@ export const disableClientCache = true;

export const enableServerComponentLogs = true;

export const enableRefAsProp = true;
export const disableStringRefs = true;

export const enableReactTestRendererWarning = false;
export const disableLegacyMode = false;
export const disableDOMTestUtils = false;
Expand Down

0 comments on commit 7621466

Please sign in to comment.