replace '$TEMPORARY$object' with '$ReadOnly' [1/n] (#46879)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/46879

* `js1 flow-runner codemod flow/replaceTempObjWithReadOnly`
* Suppress errors

Changelog: [internal]

Reviewed By: SamChou19815

Differential Revision: D64019269

fbshipit-source-id: 811deeff3be2f9ebed750719da67a4e87a074a67
This commit is contained in:
Panos Vekris
2024-10-08 10:28:56 -07:00
committed by Facebook GitHub Bot
parent 9038a78948
commit 19fc1c75d4
2 changed files with 5 additions and 5 deletions
@@ -138,7 +138,7 @@ function StackFrameList(props: {
}
function StackFrameFooter(
props: $TEMPORARY$object<{message: string, onPress: () => void}>,
props: $ReadOnly<{message: string, onPress: () => void}>,
) {
return (
<View style={stackStyles.collapseContainer}>
@@ -8,8 +8,8 @@
* @flow strict-local
*/
import type {RNTesterTheme} from './RNTesterTheme';
import type {ScreenTypes} from '../types/RNTesterTypes';
import type {RNTesterTheme} from './RNTesterTheme';
import {RNTesterThemeContext} from './RNTesterTheme';
import * as React from 'react';
@@ -56,7 +56,7 @@ const ComponentTab = ({
isComponentActive,
handleNavBarPress,
theme,
}: $TEMPORARY$object<{
}: $ReadOnly<{
handleNavBarPress: NavBarOnPressHandler,
isComponentActive: boolean,
theme: RNTesterTheme,
@@ -77,7 +77,7 @@ const PlaygroundTab = ({
isComponentActive,
handleNavBarPress,
theme,
}: $TEMPORARY$object<{
}: $ReadOnly<{
handleNavBarPress: NavBarOnPressHandler,
isComponentActive: boolean,
theme: RNTesterTheme,
@@ -98,7 +98,7 @@ const APITab = ({
isAPIActive,
handleNavBarPress,
theme,
}: $TEMPORARY$object<{
}: $ReadOnly<{
handleNavBarPress: NavBarOnPressHandler,
isAPIActive: boolean,
theme: RNTesterTheme,