Skip to content

Consistent Perspective between iOS and Android #22279

@wcandillon

Description

@wcandillon

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidAndroid applications.Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions