Skip to content

Commit 21ada9c

Browse files
fabriziocuccimeta-codesync[bot]
authored andcommitted
Migrate LogBoxInspectorSection to Flow component syntax (#55619)
Summary: Pull Request resolved: #55619 Migrate LogBoxInspectorSection from function component to Flow component syntax. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D93743231 fbshipit-source-id: 4e0958771495c6faeb35c5d3e75e673eac492d95
1 parent e59d633 commit 21ada9c

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

packages/react-native/Libraries/LogBox/UI/LogBoxInspectorSection.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,18 @@ import Text from '../../Text/Text';
1414
import * as LogBoxStyle from './LogBoxStyle';
1515
import * as React from 'react';
1616

17-
type Props = Readonly<{
17+
component LogBoxInspectorSection(
1818
heading: string,
1919
children: React.Node,
2020
action?: ?React.Node,
21-
}>;
22-
23-
function LogBoxInspectorSection(props: Props): React.Node {
21+
) {
2422
return (
2523
<View style={styles.section}>
2624
<View style={styles.heading}>
27-
<Text style={styles.headingText}>{props.heading}</Text>
28-
{props.action}
25+
<Text style={styles.headingText}>{heading}</Text>
26+
{action}
2927
</View>
30-
<View style={styles.body}>{props.children}</View>
28+
<View style={styles.body}>{children}</View>
3129
</View>
3230
);
3331
}

0 commit comments

Comments
 (0)