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

Center color circle loose circle shape when defining 'oldColor' params #44

Open
nikoden-io opened this issue Jul 19, 2021 · 2 comments
Open

Comments

@nikoden-io
Copy link

Hello here,

First of all thanks for your work on this one !

I have an issue: when I set a value for oldColor params the center circle (with old/current color) switch from a perfect circle to something strange between square and circle I would say.

Any idea of the origin of that ? Thanks a lot for infos

@phantom-factotum
Copy link

phantom-factotum commented Oct 23, 2021

I have the same issue. The "squircle" only happens on ios for me. It looks like to me that the very top and bottom parts of the circle is being clipped off screen

@phantom-factotum
Copy link

phantom-factotum commented Oct 24, 2021

I resolved the issue by changing the following the StyleSheet

selectedPreview: {
        position: "absolute",
        borderColor:'transparent',
        borderWidth:1,
        borderLeftWidth:Platform.select({
            android:0,
            ios:null
        }),

    },
    originalPreview: {
        position: "absolute",
        borderColor:'transparent',
        borderWidth:1,
        borderRightWidth:Platform.select({
            android:0,
            ios:null
        }),
    },

I think by making the border widths 0 on iOS had some weird effect on the other border radiuses of the view. Idk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants