How to get touch coordinates for cardStyleInterpolator #12288
-
|
I have two screens. On the first screen I have a list of items. When I press on the item, I want to navigate to next screen. I want to have a custom transition to this next screen. I want it to "originate" from the item I touched. Take a look at the code below: This just shows the next screen from the bottom right, but I want to show screen from a custom x,y location on the screen. What are the best ways to pass custom values to cardStyleInterpolator? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You could store the coordinates in a variable outside the component and read that variable inside |
Beta Was this translation helpful? Give feedback.
You could store the coordinates in a variable outside the component and read that variable inside
cardStyleInterpolator, then clear it once the animation finishes.