My question is about using translateX and translateY in react and/or react-native animations, to animate an object to a certain point.
These two transformations move an object relative to the existing point.
But for the scenario, the existing coordinate is not important and I want to assure the object moves to a certain point wherever it may exist in the screen.
Additional limitation is, I can not animate styles top
, bottom
, left
and right
because in react-native, if we animate these styles then we can not use the useNativeDriver={true}
directive which causes performance problems.