diff --git a/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js b/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js index e64262ae37dea8..9da88998c47c84 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js +++ b/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js @@ -24,6 +24,6 @@ export interface TextInputNativeCommands { ) => void; } -const supportedCommands = ['focus', 'blur', 'setTextAndSelection']; +const supportedCommands = ['focus', 'blur', 'setTextAndSelection'] as string[]; export default supportedCommands; diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 5ff675086e6788..0ea5785fd31469 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -3515,7 +3515,7 @@ exports[`public API should not change unintentionally Libraries/Components/TextI end: Int32 ) => void; } -declare const supportedCommands: $FlowFixMe; +declare const supportedCommands: string[]; declare export default typeof supportedCommands; " `;