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

Non zero borderRadius brakes transform on Android #17400

Closed
rlz opened this issue Dec 31, 2017 · 2 comments
Closed

Non zero borderRadius brakes transform on Android #17400

rlz opened this issue Dec 31, 2017 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@rlz
Copy link

rlz commented Dec 31, 2017

Is this a bug report?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13.2
Node: 8.1.4
Yarn: Not Found
npm: 5.6.0
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.51.0 => 0.51.0

Steps to Reproduce

Draw simple component:

function Test() {
    return <Animated.View style={[
        {
            backgroundColor: "red",
            marginTop: 30
        },
        {
            transform: [
                {perspective: 850},
                {rotateY: '45deg'}
            ]
        }
    ]}>
        <Text>Bla-bla-bla</Text>
        <View style={{
            borderWidth: 1,
            margin: 10,
            padding: 10,
            borderRadius: 10,
        }}>
            <Text>Test Button</Text>
        </View>
    </Animated.View>
}

On iOS it works as expected:

On Android it is not (I tried both the emulator and my phone):

Actually, if I animate this rotation it looks very weird on Android.

If I comment out "borderRadius" style property everything works as expected on both Android and iOS:

@narusejyunnichi
Copy link

i have same problem

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 24, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jun 13, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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

3 participants