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

Consistent Perspective between iOS and Android #22279

Closed
3 tasks done
wcandillon opened this issue Nov 14, 2018 · 1 comment
Closed
3 tasks done

Consistent Perspective between iOS and Android #22279

wcandillon opened this issue Nov 14, 2018 · 1 comment
Labels
Platform: Android Android applications. Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@wcandillon
Copy link
Contributor

Description

On Android, there is a default perspective transformation applied to the view. That leads to inconsistent transformations between Android and iOS. By reading the issues on Github, it looks like this default perspective is needed in order for some 2d transformation to work properly on some Android devices. I posted a question about this on stackoverflow: https://stackoverflow.com/questions/53300779/what-is-the-default-react-native-perspective-on-android

Unfortunately, I cannot find the inverse perspective transformation on Android that would lead me to build consistent 3d transformation between iOS and Android.
One suggestion I have (if my understanding of the problem is correct) is that if the transform set on the JS side has a perspective element, don't apply any another transform perspective on Android.

Reproducible Demo

https://snack.expo.io/@wcandillon/test-3d-transform
In the snack above, the animation is 2d as expected on iOS and 3d on Android (not expected).

@react-native-bot react-native-bot added Platform: Android Android applications. Platform: iOS iOS applications. labels Nov 14, 2018
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Nov 14, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Nov 14, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants