Skip to content

Commit 4c51544

Browse files
committed
fix: typechecking in IntegrationTestsApp.js
1 parent b34c885 commit 4c51544

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/rn-tester/IntegrationTests/IntegrationTestsApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const TESTS = [
3535

3636
TESTS.forEach(test =>
3737
AppRegistry.registerComponent(
38-
test.displayName || test.name || '',
38+
(test as React.ComponentType<any>).displayName || test.name || '',
3939
/* $FlowFixMe[incompatible-type] (>=0.54.0 site=react_native_fb,react_native_
4040
* oss) This comment suppresses an error found when Flow v0.54 was deployed.
4141
* To see the error delete this comment and run Flow. */
@@ -83,7 +83,7 @@ class IntegrationTestsApp extends React.Component<{...}, $FlowFixMe> {
8383
*/
8484
style={styles.row}>
8585
<Text style={styles.testName}>
86-
{test.displayName || test.name}
86+
{(test as React.ComponentType<any>).displayName || test.name}
8787
</Text>
8888
</TouchableOpacity>,
8989
<View style={styles.separator} />,

0 commit comments

Comments
 (0)