Skip to content

Commit 066c0d8

Browse files
SamChou19815meta-codesync[bot]
authored andcommitted
Eliminate legacy flow syntax in ReactNativeFeatureFlags.js (#57192)
Summary: Pull Request resolved: #57192 Changelog: [Internal] Reviewed By: panagosg7 Differential Revision: D108435552 fbshipit-source-id: b9228cb948590d4981e0ad0b798354b611751bec
1 parent 8aab00e commit 066c0d8

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.flowconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ react.runtime=automatic
6767

6868
experimental.deprecated_utilities.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
6969
experimental.deprecated_utilities.excludes=<PROJECT_ROOT>/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
70-
experimental.deprecated_utilities.excludes=<PROJECT_ROOT>/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js
7170
ban_spread_key_props=true
7271

7372
[lints]

packages/react-native/scripts/featureflags/templates/js/ReactNativeFeatureFlags.js-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
setOverrides,
3636
} from './ReactNativeFeatureFlagsBase';
3737
38-
export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
38+
export type ReactNativeFeatureFlagsJsOnly = Readonly<{
3939
${Object.entries(definitions.jsOnly)
4040
.map(
4141
([flagName, flagConfig]) =>
@@ -46,7 +46,7 @@ ${Object.entries(definitions.jsOnly)
4646
4747
export type ReactNativeFeatureFlagsJsOnlyOverrides = OverridesFor<ReactNativeFeatureFlagsJsOnly>;
4848
49-
export type ReactNativeFeatureFlags = $ReadOnly<{
49+
export type ReactNativeFeatureFlags = Readonly<{
5050
...ReactNativeFeatureFlagsJsOnly,
5151
${Object.entries(definitions.common)
5252
.map(

packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<d9146c8c9b0c602e4cedb99e6d91558e>>
7+
* @generated SignedSource<<609451fd0a38e0f8eaf685e7cf534e27>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -27,7 +27,7 @@ import {
2727
setOverrides,
2828
} from './ReactNativeFeatureFlagsBase';
2929

30-
export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
30+
export type ReactNativeFeatureFlagsJsOnly = Readonly<{
3131
jsOnlyTestFlag: Getter<boolean>,
3232
animatedDeferStartOfTimingAnimations: Getter<boolean>,
3333
animatedShouldDebounceQueueFlush: Getter<boolean>,
@@ -46,7 +46,7 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
4646

4747
export type ReactNativeFeatureFlagsJsOnlyOverrides = OverridesFor<ReactNativeFeatureFlagsJsOnly>;
4848

49-
export type ReactNativeFeatureFlags = $ReadOnly<{
49+
export type ReactNativeFeatureFlags = Readonly<{
5050
...ReactNativeFeatureFlagsJsOnly,
5151
commonTestFlag: Getter<boolean>,
5252
commonTestFlagWithoutNativeImplementation: Getter<boolean>,

0 commit comments

Comments
 (0)