mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
9038a78948
commit
19fc1c75d4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user