keske / react-native-easy-gestures

React Native Gestures. Support: Drag, Scale and Rotate a Component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onEnd styled parameter swaps index position of rotate & scale in transform array

RahulMore-Codes opened this issue · comments

Hello, I'm just trying to retrieve transform's scale and rotate individually with their index position with 'onEnd' props's 'styled' parameter, in the process im facing problem below.
Initially when does gesture with single touch the 'styled' parameter of 'onEnd' function gives 'transform' value = transform: [{rotate: value}, {scale: value}]
but when does gesture with two touch the 'transform' array changes index position of scale and rotate that is = transform: [{scale: value}, {rotate: value}].

Although, with some conditions im able to extract values but it will be easier if it would be fixed.
Thank you for this awesome package 😉.