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:
Родитель
3220029514
Коммит
2fab97fde5
|
@ -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>
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче