Open
Description
Proposal: Add button
number property to mouse events
Summary
React Native macOS provides the button
property (0 for left, 2 for right) here, which comes from the DOM MouseEvent.button API.
On React Native Windows, the mouse events have "non-standard" boolean properties (e.g. isLeftButton
, isRightButton
, etc.) set here. This proposal is to add button
property and hopefully deprecate the others so that code built for both macOS and Windows doesn't need separate checks to detect right clicks for each platform.