From 83ab3615c5b4afd64c1afa23fe7ce04097ce67ab Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Tue, 22 Mar 2022 11:42:16 -0700 Subject: [PATCH] Land suppressions ahead of 0.174.1 release [v2] Summary: Changelog: [Internal] Reviewed By: mroch Differential Revision: D35035872 fbshipit-source-id: 74daf0685e976459119061a3fca467277f0dc4ac --- Libraries/LogBox/UI/LogBoxInspectorFooter.js | 1 + .../rn-tester/js/examples/Pressable/PressableExample.js | 1 + .../js/examples/SafeAreaView/SafeAreaViewExample.js | 9 ++++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Libraries/LogBox/UI/LogBoxInspectorFooter.js b/Libraries/LogBox/UI/LogBoxInspectorFooter.js index 5e1d29e63e1..34b0cff249f 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorFooter.js +++ b/Libraries/LogBox/UI/LogBoxInspectorFooter.js @@ -69,6 +69,7 @@ function FooterButton(props: ButtonProps): React.Node { const buttonStyles = StyleSheet.create({ safeArea: { flex: 1, + // $FlowFixMe[sketchy-null-bool] paddingBottom: DeviceInfo.getConstants().isIPhoneX_deprecated ? 30 : 0, }, content: { diff --git a/packages/rn-tester/js/examples/Pressable/PressableExample.js b/packages/rn-tester/js/examples/Pressable/PressableExample.js index 3dc8945c855..a7d0362c1a1 100644 --- a/packages/rn-tester/js/examples/Pressable/PressableExample.js +++ b/packages/rn-tester/js/examples/Pressable/PressableExample.js @@ -166,6 +166,7 @@ function ForceTouchExample() { style={styles.wrapper} testID="pressable_3dtouch_button" onStartShouldSetResponder={() => true} + // $FlowFixMe[sketchy-null-number] onResponderMove={event => setForce(event.nativeEvent?.force || 1)} onResponderRelease={event => setForce(0)}> Press Me diff --git a/packages/rn-tester/js/examples/SafeAreaView/SafeAreaViewExample.js b/packages/rn-tester/js/examples/SafeAreaView/SafeAreaViewExample.js index 353a0c502df..42902ec996f 100644 --- a/packages/rn-tester/js/examples/SafeAreaView/SafeAreaViewExample.js +++ b/packages/rn-tester/js/examples/SafeAreaView/SafeAreaViewExample.js @@ -89,9 +89,12 @@ class IsIPhoneXExample extends React.Component<{...}> { Is this an iPhone X:{' '} - {DeviceInfo.getConstants().isIPhoneX_deprecated - ? 'Yeah!' - : 'Nope. (Or `isIPhoneX_deprecated` was already removed.)'} + { + // $FlowFixMe[sketchy-null-bool] + DeviceInfo.getConstants().isIPhoneX_deprecated + ? 'Yeah!' + : 'Nope. (Or `isIPhoneX_deprecated` was already removed.)' + } );