fix: [TS] Update translateX & translateY types to support %#42671
fix: [TS] Update translateX & translateY types to support %#42671retyui wants to merge 1 commit into
translateX & translateY types to support %#42671Conversation
|
@NickGerleman can you review this? |
|
@retyui thanks for the change! I took a look at transform?:
| $ReadOnlyArray<
| {|+perspective: number | AnimatedNode|}
| {|+rotate: string | AnimatedNode|}
| {|+rotateX: string | AnimatedNode|}
| {|+rotateY: string | AnimatedNode|}
| {|+rotateZ: string | AnimatedNode|}
| {|+scale: number | AnimatedNode|}
| {|+scaleX: number | AnimatedNode|}
| {|+scaleY: number | AnimatedNode|}
| {|+translateX: number | AnimatedNode|}
| {|+translateY: number | AnimatedNode|}
| {|
+translate:
| [number | AnimatedNode, number | AnimatedNode]
| AnimatedNode,
|}
| {|+skewX: string | AnimatedNode|}
| {|+skewY: string | AnimatedNode|}
// TODO: what is the actual type it expects?
| {|
+matrix: $ReadOnlyArray<number | AnimatedNode> | AnimatedNode,
|},
>
| string, |
No, |
|
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by @retyui in b133bf6. When will my fix make it into a release? | Upcoming Releases |
|
I think percentage is not supported based on processTransform 🤔 or do we need to update processTransform? |
|
@burakgormek Do you check all code ? I think it works well and don't need to be update |
Summary:
After update to the latest
react-nativeversionwe discover that we are unable to use
number%value fortranslate*props :percentage values are supported, demo: https://snack.expo.dev/@retyui/test-tstransform
Changelog:
[GENERAL] [FIXED] - Update typescript definition of
translateX&translateXto be able to use percentage valuesTest Plan:
yarn tsc --noEmit