Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Add perspective transform support on Android #11713

wants to merge 1 commit into from

Conversation

satya164
Copy link
Contributor

@satya164 satya164 commented Jan 4, 2017

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

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @kmagiera and @janicduplessis to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jan 4, 2017
@nihgwu
Copy link
Contributor

nihgwu commented Jan 4, 2017

awesome

@jamesreilly5
Copy link

Any news on this being merged? Know you guys probably get swamped with requests but this would be awesome

@brentvatne
Copy link
Collaborator

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@brentvatne has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@satya164 satya164 deleted the perspective branch February 4, 2017 19:41
edmofro pushed a commit to edmofro/react-native that referenced this pull request Feb 6, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 7, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Feb 8, 2017
Summary:
Rebased #6926 against master.

Fixes #2915
Closes facebook/react-native#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
normanjoyner pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
nicktate pushed a commit to nicktate/react-native that referenced this pull request Feb 9, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
GaborWnuk pushed a commit to GaborWnuk/react-native that referenced this pull request Feb 28, 2017
Summary:
Rebased facebook#6926 against master.

Fixes facebook#2915
Closes facebook#11713

Differential Revision: D4513111

fbshipit-source-id: 9fb653c4bfd64eda12a605f6cabb0159b2af8f73
maarf pushed a commit to fullcontact/react-native that referenced this pull request Apr 26, 2017
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;

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants