Land suppressions ahead of 0.174.1 release

Summary: Changelog: [Internal]

Reviewed By: samwgoldman

Differential Revision: D35016384

fbshipit-source-id: 78ab1b4822c0a3aeab63d615b81b6063a883fe54
This commit is contained in:
Pieter Vanderwerff 2022-03-21 14:24:38 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 3220029514
Коммит 2fab97fde5
3 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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>
);