Skip to content

Commit

Permalink
Pre-suppress errors ahead of 0.197.0 release
Browse files Browse the repository at this point in the history
Summary: Changelog: [internal]

Reviewed By: mroch

Differential Revision: D42558696

fbshipit-source-id: 3367fb1233c9630bd31b0ae9950f7b2f13438057
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Jan 18, 2023
1 parent 2430d1f commit f4072b1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Libraries/Components/StatusBar/StatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ class StatusBar extends React.Component<Props> {
});

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

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

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

// $FlowFixMe[missing-local-annot]
_stackEntry = null;

componentDidMount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ describe('emitPromise', () => {
/* aliasMap: {...NativeModuleAliasMap} */
{},
/* tryParse: ParserErrorCapturer */
// $FlowFixMe[missing-local-annot]
function <T>(_: () => T) {
return null;
},
Expand Down
1 change: 1 addition & 0 deletions packages/rn-tester/js/components/TextLegend.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const PANGRAMS = {
export default function TextLegend(): React.Node {
const [language, setLanguage] = React.useState('english');
const [alignment, setAlignment] = React.useState('left');
// $FlowFixMe[missing-empty-array-annot]
const [textMetrics, setTextMetrics] = React.useState([]);
const [fontSize, setFontSize] = React.useState(50);
return (
Expand Down
1 change: 1 addition & 0 deletions packages/rn-tester/js/examples/FlatList/FlatList-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class FlatListExample extends React.PureComponent<Props, State> {
ListHeaderComponent={<HeaderComponent />}
ListFooterComponent={FooterComponent}
ListEmptyComponent={ListEmptyComponent}
// $FlowFixMe[missing-empty-array-annot]
data={this.state.empty ? [] : filteredData}
debug={this.state.debug}
disableVirtualization={!this.state.virtualized}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ const TouchableTouchSoundDisabled = () => {
);
};

// $FlowFixMe[missing-local-annot]
function TouchableOnFocus<T: React.AbstractComponent<any, any>>() {
const ref = useRef<?React.ElementRef<T> | {focus: Function}>(null);
const [isFocused, setIsFocused] = useState<string | boolean>(false);
Expand Down
6 changes: 4 additions & 2 deletions packages/rn-tester/js/utils/RNTesterNavigationReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const getUpdatedBookmarks = ({
}) => {
const updatedBookmarks = bookmarks
? {...bookmarks}
: {components: [], apis: []};
: // $FlowFixMe[missing-empty-array-annot]
{components: [], apis: []};

if (!exampleType || !key) {
return null;
Expand Down Expand Up @@ -60,7 +61,8 @@ const getUpdatedRecentlyUsed = ({
}) => {
const updatedRecentlyUsed = recentlyUsed
? {...recentlyUsed}
: {components: [], apis: []};
: // $FlowFixMe[missing-empty-array-annot]
{components: [], apis: []};

if (!exampleType || !key) {
return updatedRecentlyUsed;
Expand Down

0 comments on commit f4072b1

Please sign in to comment.