mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pre-suppress errors ahead of next release
Reviewed By: gkz Differential Revision: D71039278 fbshipit-source-id: 5d42ee1707335bfb579fa49beeb597d98eba70c5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
43fe9f3d88
commit
2cdd79f4fc
@@ -119,12 +119,15 @@ class Alert {
|
||||
if (action === constants.buttonClicked) {
|
||||
if (buttonKey === constants.buttonNeutral) {
|
||||
// $FlowFixMe[incompatible-type]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
buttonNeutral.onPress && buttonNeutral.onPress();
|
||||
} else if (buttonKey === constants.buttonNegative) {
|
||||
// $FlowFixMe[incompatible-type]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
buttonNegative.onPress && buttonNegative.onPress();
|
||||
} else if (buttonKey === constants.buttonPositive) {
|
||||
// $FlowFixMe[incompatible-type]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
buttonPositive.onPress && buttonPositive.onPress();
|
||||
}
|
||||
} else if (action === constants.dismissed) {
|
||||
|
||||
@@ -117,6 +117,7 @@ class TaskQueue {
|
||||
} catch (e) {
|
||||
e.message =
|
||||
// $FlowFixMe[incompatible-type]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message;
|
||||
throw e;
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -15,6 +15,7 @@
|
||||
* when defining the types here. Consider both presence (`?`) as well as
|
||||
* writeability (`+`) when defining types.
|
||||
*/
|
||||
// $FlowFixMe[libdef-override]
|
||||
declare var global: {
|
||||
// setUpGlobals
|
||||
+window: typeof global,
|
||||
|
||||
Reference in New Issue
Block a user