@@ -196,12 +196,66 @@ type Props = $ReadOnly<{|
196196 */
197197 validKeysUp ?: ?Array < string > ,
198198
199+ /**
200+ * Specifies whether the view should receive the mouse down event when the
201+ * containing window is in the background.
202+ *
203+ * @platform macos
204+ */
199205 acceptsFirstMouse ?: ?boolean ,
206+
207+ /**
208+ * Specifies whether clicking and dragging the view can move the window. This is useful
209+ * to disable in Button like components like Pressable where mouse the user should still
210+ * be able to click and drag off the view to cancel the click without accidentally moving the window.
211+ *
212+ * @platform macos
213+ */
214+ mouseDownCanMoveWindow ?: ?boolean ,
215+
216+ /**
217+ * Specifies whether system focus ring should be drawn when the view has keyboard focus.
218+ *
219+ * @platform macos
220+ */
200221 enableFocusRing ?: ?boolean ,
222+
223+ /**
224+ * Specifies the Tooltip for the Pressable.
225+ * @platform macos
226+ */
201227 tooltip ?: ?string ,
228+
229+ /**
230+ * Fired when a file is dragged into the Pressable via the mouse.
231+ *
232+ * @platform macos
233+ */
202234 onDragEnter ?: ( event : MouseEvent ) => void ,
235+
236+ /**
237+ * Fired when a file is dragged out of the Pressable via the mouse.
238+ *
239+ * @platform macos
240+ */
203241 onDragLeave ?: ( event : MouseEvent ) => void ,
242+
243+ /**
244+ * Fired when a file is dropped on the Pressable via the mouse.
245+ *
246+ * @platform macos
247+ */
204248 onDrop ?: ( event : MouseEvent ) => void ,
249+
250+ /**
251+ * The types of dragged files that the Pressable will accept.
252+ *
253+ * Possible values for `draggedTypes` are:
254+ *
255+ * - `'fileUrl'`
256+ *
257+ * @platform macos
258+ */
205259 draggedTypes ?: ?DraggedTypesType ,
206260 // macOS]
207261
@@ -250,8 +304,6 @@ type Props = $ReadOnly<{|
250304 * LTI update could not be added via codemod */
251305function Pressable ( props : Props , forwardedRef ) : React . Node {
252306 const {
253- acceptsFirstMouse, // [macOS]
254- enableFocusRing, // [macOS]
255307 accessible,
256308 accessibilityState,
257309 'aria-live' : ariaLive ,
@@ -282,6 +334,9 @@ function Pressable(props: Props, forwardedRef): React.Node {
282334 onBlur,
283335 onKeyDown,
284336 onKeyUp,
337+ acceptsFirstMouse,
338+ mouseDownCanMoveWindow,
339+ enableFocusRing,
285340 // macOS]
286341 pressRetentionOffset,
287342 style,
@@ -322,7 +377,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
322377 const restPropsWithDefaults : React . ElementConfig < typeof View > = {
323378 ...restProps ,
324379 ...android_rippleConfig ?. viewProps ,
325- acceptsFirstMouse : acceptsFirstMouse !== false && ! disabled , // [macOS
380+ acceptsFirstMouse : acceptsFirstMouse !== false && ! disabled , // [macOS]
381+ mouseDownCanMoveWindow : false , // [macOS]
326382 enableFocusRing : enableFocusRing !== false && ! disabled ,
327383 accessible : accessible !== false ,
328384 accessibilityViewIsModal :
0 commit comments