react-native-macos/RNTester/js/examples
simek ad2f98df8f mark 'force' as optional property of PressEvent object (#29006)
Summary:
Refs:
* https://github.com/facebook/react-native/blob/master/React/Fabric/RCTSurfaceTouchHandler.mm#L93
* https://github.com/facebook/react-native/blob/master/RNTester/js/examples/Pressable/PressableExample.js#L25

According to the current implementation `force` will be returned only on `iOS` platform, only on the devices which have a hardware 3D touch capabilities.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[General] [Fixed] - mark `force` as an optional property of the PressEvent object
Pull Request resolved: https://github.com/facebook/react-native/pull/29006

Test Plan: Go CI!

Reviewed By: cpojer

Differential Revision: D21797241

Pulled By: TheSavior

fbshipit-source-id: e66be6958a2251bc8585e87e6bad54484a067949
2020-05-29 17:36:59 -07:00
..
Accessibility Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
ActionSheetIOS Revert D21396409: Add possibility to disable buttons in action sheet ios 2020-05-19 16:36:32 -07:00
ActivityIndicator Add type annotations to render method of react components 2019-09-03 17:36:32 -07:00
Alert Back out "Moving towards UIWindowScene support" 2020-03-05 15:58:44 -08:00
Animated Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
AppState Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Appearance Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
AsyncStorage Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Border
BoxShadow
Button Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Clipboard xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
Crash xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
DatePicker Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
DevSettings Export the DevSettings module, add `addMenuItem` method (#25848) 2019-09-17 06:38:10 -07:00
Dimensions Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
FlatList Fix Animated type 2020-05-07 00:06:27 -07:00
Image Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
InputAccessoryView Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
JSResponderHandlerExample Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
KeyboardAvoidingView Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Layout Add a "reparenting" LayoutAnimation example that animates flattening/unflattening 2020-04-16 16:18:43 -07:00
Linking Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
MaskedView Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Modal Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
MultiColumn Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
NativeAnimation Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
NewAppScreen Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
OrientationChange Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
PanResponder Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
PermissionsAndroid Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Picker Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
PlatformColor Allow iOS PlatformColor strings to be ObjC or Swift UIColor selectors (#28703) 2020-04-20 20:23:04 -07:00
PointerEvents Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Pressable mark 'force' as optional property of PressEvent object (#29006) 2020-05-29 17:36:59 -07:00
ProgressBarAndroid Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
ProgressViewIOS Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
PushNotificationIOS Fix invalid type annotations 2020-05-03 12:09:48 -07:00
RCTRootView Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
RTL Use RTL in RTLExample when Platform != android (#28742) 2020-04-24 14:01:49 -07:00
RefreshControl Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
RootViewSizeFlexibilityExample Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
SafeAreaView Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
ScrollView Add support for ScrollView.contentOffset 2020-05-14 11:52:05 -07:00
SectionList Fix Animated type 2020-05-07 00:06:27 -07:00
SegmentedControlIOS Move SegmentedControl components to separate file and make them function based 2020-05-11 09:01:35 -07:00
SetPropertiesExample xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
Share Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Slider Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Snapshot Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
StatusBar Back out "Moving towards UIWindowScene support" 2020-03-05 15:58:44 -08:00
Switch Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
TVEventHandler Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Text Fix position of TextInlineViews when nesting multiple Text components 2020-05-14 21:42:37 -07:00
TextInput implemented showSoftInputOnFocus for iOS (#28834) 2020-05-11 09:01:33 -07:00
Timer Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
ToastAndroid Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Touchable add ripple config object to Pressable (#28156) 2020-04-03 18:37:10 -07:00
Transform Move suppression to primary locations in xplat/js 2020-02-27 12:14:57 -08:00
TransparentHitTest Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
TurboModule RN: Add `RootTag` Type to TurboModule 2020-04-21 19:15:54 -07:00
Vibration xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
View Fix rounded border drawing when border-radius is smaller than border-width (#28358) 2020-04-19 23:44:02 -07:00
WebSocket Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
XHR Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00