Skip to content

Commit f4072b1

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Pre-suppress errors ahead of 0.197.0 release
Summary: Changelog: [internal] Reviewed By: mroch Differential Revision: D42558696 fbshipit-source-id: 3367fb1233c9630bd31b0ae9950f7b2f13438057
1 parent 2430d1f commit f4072b1

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

Libraries/Components/StatusBar/StatusBar.js

+3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ class StatusBar extends React.Component<Props> {
238238
});
239239

240240
// Timer for updating the native module values at the end of the frame.
241+
// $FlowFixMe[missing-local-annot]
241242
static _updateImmediate = null;
242243

243244
// The current merged values from the props stack.
245+
// $FlowFixMe[missing-local-annot]
244246
static _currentValues = null;
245247

246248
// TODO(janic): Provide a real API to deal with status bar height. See the
@@ -387,6 +389,7 @@ class StatusBar extends React.Component<Props> {
387389
return newEntry;
388390
}
389391

392+
// $FlowFixMe[missing-local-annot]
390393
_stackEntry = null;
391394

392395
componentDidMount() {

packages/react-native-codegen/src/parsers/__tests__/parsers-primitives-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ describe('emitPromise', () => {
362362
/* aliasMap: {...NativeModuleAliasMap} */
363363
{},
364364
/* tryParse: ParserErrorCapturer */
365+
// $FlowFixMe[missing-local-annot]
365366
function <T>(_: () => T) {
366367
return null;
367368
},

packages/rn-tester/js/components/TextLegend.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const PANGRAMS = {
4040
export default function TextLegend(): React.Node {
4141
const [language, setLanguage] = React.useState('english');
4242
const [alignment, setAlignment] = React.useState('left');
43+
// $FlowFixMe[missing-empty-array-annot]
4344
const [textMetrics, setTextMetrics] = React.useState([]);
4445
const [fontSize, setFontSize] = React.useState(50);
4546
return (

packages/rn-tester/js/examples/FlatList/FlatList-basic.js

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ class FlatListExample extends React.PureComponent<Props, State> {
233233
ListHeaderComponent={<HeaderComponent />}
234234
ListFooterComponent={FooterComponent}
235235
ListEmptyComponent={ListEmptyComponent}
236+
// $FlowFixMe[missing-empty-array-annot]
236237
data={this.state.empty ? [] : filteredData}
237238
debug={this.state.debug}
238239
disableVirtualization={!this.state.virtualized}

packages/rn-tester/js/examples/Touchable/TouchableExample.js

+1
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ const TouchableTouchSoundDisabled = () => {
540540
);
541541
};
542542

543+
// $FlowFixMe[missing-local-annot]
543544
function TouchableOnFocus<T: React.AbstractComponent<any, any>>() {
544545
const ref = useRef<?React.ElementRef<T> | {focus: Function}>(null);
545546
const [isFocused, setIsFocused] = useState<string | boolean>(false);

packages/rn-tester/js/utils/RNTesterNavigationReducer.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const getUpdatedBookmarks = ({
3232
}) => {
3333
const updatedBookmarks = bookmarks
3434
? {...bookmarks}
35-
: {components: [], apis: []};
35+
: // $FlowFixMe[missing-empty-array-annot]
36+
{components: [], apis: []};
3637

3738
if (!exampleType || !key) {
3839
return null;
@@ -60,7 +61,8 @@ const getUpdatedRecentlyUsed = ({
6061
}) => {
6162
const updatedRecentlyUsed = recentlyUsed
6263
? {...recentlyUsed}
63-
: {components: [], apis: []};
64+
: // $FlowFixMe[missing-empty-array-annot]
65+
{components: [], apis: []};
6466

6567
if (!exampleType || !key) {
6668
return updatedRecentlyUsed;

0 commit comments

Comments
 (0)