In this video, we showcase the decompose2d and tween function from redash 🍿
Source code: https://github.com/wcandillon/can-it-be-done-in-react-native/blob/master/the-10-min/src/Skew/Skew.tsx
Wanna learn the fundamentals of declarative Gestures and Animations? Check out http://start-react-native.dev.
Here are some of the pointer showed in the video:
Decomposition algorithm: https://math.stackexchange.com/questions/861674/decompose-a-2d-arbitrary-transform-into-only-scaling-and-rotation
Transform processing on iOS: https://github.com/facebook/react-native/blob/master/React/Views/RCTConvert%2BTransform.m
2d decomposition on Android: https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java
Do you like the series? You can support the channel by buying me a coffee at https://react-native.shop/buy-me-a-coffee ☕️.
Are you sometimes asking yourself, "Can it be done in React Native"? Send me your suggestions at [email protected]