Land suppressions ahead of 0.174.1 release [v2]

Summary: Changelog: [Internal]

Reviewed By: mroch

Differential Revision: D35035872

fbshipit-source-id: 74daf0685e976459119061a3fca467277f0dc4ac
This commit is contained in:
Pieter Vanderwerff
2022-03-22 11:42:16 -07:00
committed by Facebook GitHub Bot
parent ca090ac977
commit 83ab3615c5
3 changed files with 8 additions and 3 deletions
@@ -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: {
@@ -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)}>
<Text style={styles.button}>Press Me</Text>
@@ -89,9 +89,12 @@ class IsIPhoneXExample extends React.Component<{...}> {
<View>
<Text>
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.)'
}
</Text>
</View>
);