mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pre-suppress errors ahead of 0.197.0 release
Summary: Changelog: [internal] Reviewed By: mroch Differential Revision: D42558696 fbshipit-source-id: 3367fb1233c9630bd31b0ae9950f7b2f13438057
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2430d1fcf3
commit
f4072b1e00
@@ -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
|
||||
@@ -387,6 +389,7 @@ class StatusBar extends React.Component<Props> {
|
||||
return newEntry;
|
||||
}
|
||||
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
_stackEntry = null;
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
+1
@@ -362,6 +362,7 @@ describe('emitPromise', () => {
|
||||
/* aliasMap: {...NativeModuleAliasMap} */
|
||||
{},
|
||||
/* tryParse: ParserErrorCapturer */
|
||||
// $FlowFixMe[missing-local-annot]
|
||||
function <T>(_: () => T) {
|
||||
return null;
|
||||
},
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -32,7 +32,8 @@ const getUpdatedBookmarks = ({
|
||||
}) => {
|
||||
const updatedBookmarks = bookmarks
|
||||
? {...bookmarks}
|
||||
: {components: [], apis: []};
|
||||
: // $FlowFixMe[missing-empty-array-annot]
|
||||
{components: [], apis: []};
|
||||
|
||||
if (!exampleType || !key) {
|
||||
return null;
|
||||
@@ -60,7 +61,8 @@ const getUpdatedRecentlyUsed = ({
|
||||
}) => {
|
||||
const updatedRecentlyUsed = recentlyUsed
|
||||
? {...recentlyUsed}
|
||||
: {components: [], apis: []};
|
||||
: // $FlowFixMe[missing-empty-array-annot]
|
||||
{components: [], apis: []};
|
||||
|
||||
if (!exampleType || !key) {
|
||||
return updatedRecentlyUsed;
|
||||
|
||||
Reference in New Issue
Block a user