-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add perspective transform support on Android #11713
Conversation
By analyzing the blame information on this pull request, we identified @kmagiera and @janicduplessis to be potential reviewers. |
awesome |
Any news on this being merged? Know you guys probably get swamped with requests but this would be awesome |
@facebook-github-bot shipit |
@brentvatne has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased #6926 against master. Fixes #2915 Closes facebook/react-native#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
Summary: Rebased facebook#6926 against master. Fixes facebook#2915 Closes facebook#11713 Differential Revision: D4513111 fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
@@ -165,6 +166,22 @@ private static void setTransformProperty(View view, ReadableArray transforms) { | |||
view.setRotationY((float) sMatrixDecompositionContext.rotationDegrees[1]); | |||
view.setScaleX((float) sMatrixDecompositionContext.scale[0]); | |||
view.setScaleY((float) sMatrixDecompositionContext.scale[1]); | |||
|
|||
double[] perspectiveArray = sMatrixDecompositionContext.perspective; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When no perspective is set, on Android, you still see some perspective when doing "3d transformation" while on iOS it show as expected. Therefore you always get a different result on iOS and Android when setting perspective yourself. Do you see what I mean? I could provide some examples.
I would like to know what is the default perspective an android so I can adjust the transformation correctly for android.
Thank you so much for your great work, really appreciate it.
Rebased #6926 against master.
Fixes #2915
Test plan:
Check that the perspective of the flip card in UIExplorer is same on both iOS and Android
cc @kevinstumpf @brentvatne @lexs