Revert D35016384: Land suppressions ahead of 0.174.1 release

Differential Revision:
D35016384 (https://github.com/facebook/react-native/commit/2fab97fde50624b22142e5b3aed9c9da18474aba)

Original commit changeset: 78ab1b4822c0

Original Phabricator Diff: D35016384 (https://github.com/facebook/react-native/commit/2fab97fde50624b22142e5b3aed9c9da18474aba)

fbshipit-source-id: 82d9672798fdb77313a35be40d0c0aebb0cace64
This commit is contained in:
Abishek Sethuraman
2022-03-21 15:24:39 -07:00
committed by Facebook GitHub Bot
parent 2fab97fde5
commit ecc63daf4b
3 changed files with 3 additions and 8 deletions
@@ -69,7 +69,6 @@ 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,7 +166,6 @@ 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,12 +89,9 @@ class IsIPhoneXExample extends React.Component<{...}> {
<View>
<Text>
Is this an iPhone X:{' '}
{
// $FlowFixMe[sketchy-null-bool]
DeviceInfo.getConstants().isIPhoneX_deprecated
? 'Yeah!'
: 'Nope. (Or `isIPhoneX_deprecated` was already removed.)'
}
{DeviceInfo.getConstants().isIPhoneX_deprecated
? 'Yeah!'
: 'Nope. (Or `isIPhoneX_deprecated` was already removed.)'}
</Text>
</View>
);