Consistent Perspective between iOS and Android #22279
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.
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).
The text was updated successfully, but these errors were encountered: