You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On android, the onTap event contains the following parameters: {x: number, y: number, scale:number}
However, on iOS, the parameters are { point: { x:number, y:number}, target: number } (where target is the react tag of the tapped view).
Moreover, on iOS, x and y are normalized according to the scale already (see this line)
It would be great if the two platforms could provide the same behaviour here. I'd be happy to submit a PR to make the required changes, though it's worth noting that this is a breaking change.
The text was updated successfully, but these errors were encountered:
@erandagan , that was unfortunate in the original design and I see that also in other iOS methods there is that discrepancy.
I would like to normalize the parameters, however I think that doing so would be a breaking change for iOS users. Please open a PR to integrate it into a new major version.
On android, the onTap event contains the following parameters:
{x: number, y: number, scale:number}
However, on iOS, the parameters are
{ point: { x:number, y:number}, target: number }
(where target is the react tag of the tapped view).Moreover, on iOS, x and y are normalized according to the scale already (see this line)
It would be great if the two platforms could provide the same behaviour here. I'd be happy to submit a PR to make the required changes, though it's worth noting that this is a breaking change.
The text was updated successfully, but these errors were encountered: