Skip to content

Commit 7d0474d

Browse files
author
Harini Malothu
committed
Update failing overrides from upstream commit f15985f4f
1 parent 774ec74 commit 7d0474d

71 files changed

Lines changed: 130 additions & 130 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/@react-native/tester/js/components/RNTConfigurationBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import * as React from 'react';
1515
import {useContext} from 'react';
1616
import {StyleSheet, View} from 'react-native';
1717

18-
type Props = $ReadOnly<{
18+
type Props = Readonly<{
1919
children?: ?React.Node,
2020
testID?: string,
2121
}>;

packages/@react-native/tester/js/components/RNTOption.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import * as React from 'react';
1818
import {useContext, useState} from 'react';
1919
import {Pressable, StyleSheet, Text, View} from 'react-native';
2020

21-
type Props = $ReadOnly<{
21+
type Props = Readonly<{
2222
testID?: ?string,
2323
label: string,
2424
onPress?: ?(event: GestureResponderEvent) => unknown,

packages/@react-native/tester/js/components/RNTTitleBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
9898
header: {
9999
height: 40,
100100
flexDirection: 'row',
101-
marginTop: Platform.OS === 'ios' ? 50 : 0,
101+
marginTop: Platform.OS === 'ios' && !Platform.isTV ? 50 : 0,
102102
},
103103
headerCenter: {
104104
flex: 1,

packages/@react-native/tester/js/components/RNTesterBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as React from 'react';
1313
import {useContext} from 'react';
1414
import {StyleSheet, Text, View} from 'react-native';
1515

16-
type Props = $ReadOnly<{
16+
type Props = Readonly<{
1717
children?: React.Node,
1818
title?: ?string,
1919
description?: ?string,

packages/@react-native/tester/js/components/RNTesterButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type {GestureResponderEvent} from 'react-native';
1515
import React from 'react';
1616
import {Pressable, StyleSheet, Text} from 'react-native';
1717

18-
type Props = $ReadOnly<{
18+
type Props = Readonly<{
1919
testID?: string,
2020
textTestID?: string,
2121
children?: React.Node,

packages/@react-native/tester/js/components/RNTesterComponentTitle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {RNTesterThemeContext} from './RNTesterTheme';
1313
const React = require('react');
1414
const {StyleSheet, Text} = require('react-native');
1515

16-
type Props = $ReadOnly<{
16+
type Props = Readonly<{
1717
children: string,
1818
}>;
1919

packages/@react-native/tester/js/components/RNTesterDocumentationURL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as React from 'react';
1212
import {Image, StyleSheet, TouchableOpacity} from 'react-native';
1313
import openURLInBrowser from 'react-native/Libraries/Core/Devtools/openURLInBrowser';
1414

15-
type Props = $ReadOnly<{
15+
type Props = Readonly<{
1616
documentationURL: string,
1717
}>;
1818

packages/@react-native/tester/js/components/RNTesterNavbar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ComponentTab = ({
5757
isComponentActive,
5858
handleNavBarPress,
5959
theme,
60-
}: $ReadOnly<{
60+
}: Readonly<{
6161
handleNavBarPress: NavBarOnPressHandler,
6262
isComponentActive: boolean,
6363
theme: RNTesterTheme,
@@ -78,7 +78,7 @@ const PlaygroundTab = ({
7878
isComponentActive,
7979
handleNavBarPress,
8080
theme,
81-
}: $ReadOnly<{
81+
}: Readonly<{
8282
handleNavBarPress: NavBarOnPressHandler,
8383
isComponentActive: boolean,
8484
theme: RNTesterTheme,
@@ -99,7 +99,7 @@ const APITab = ({
9999
isAPIActive,
100100
handleNavBarPress,
101101
theme,
102-
}: $ReadOnly<{
102+
}: Readonly<{
103103
handleNavBarPress: NavBarOnPressHandler,
104104
isAPIActive: boolean,
105105
theme: RNTesterTheme,
@@ -116,7 +116,7 @@ const APITab = ({
116116
/>
117117
);
118118

119-
type Props = $ReadOnly<{
119+
type Props = Readonly<{
120120
handleNavBarPress: NavBarOnPressHandler,
121121
screen: string,
122122
isExamplePageOpen: boolean,

packages/@react-native/tester/js/components/RNTesterPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {useContext} from 'react';
1515
const React = require('react');
1616
const {Platform, ScrollView, StyleSheet, View} = require('react-native');
1717

18-
type Props = $ReadOnly<{
18+
type Props = Readonly<{
1919
children?: React.Node,
2020
title?: ?string,
2121
noScroll?: ?boolean,

packages/@react-native/tester/js/components/RNTesterText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {RNTesterThemeContext} from './RNTesterTheme';
1414
import React, {useContext, useMemo} from 'react';
1515
import {Text} from 'react-native';
1616

17-
type Props = $ReadOnly<{
17+
type Props = Readonly<{
1818
...TextProps,
1919
variant?: 'body' | 'label' | 'caption',
2020
}>;

0 commit comments

Comments
 (0)