-
Notifications
You must be signed in to change notification settings - Fork 15
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
Does not play nice with PlatformColor #4
Comments
This is an issue from react-native-svg. Unfortunately, there doesn't seem to be a workaround. You'll have to wait until the issue is resolved. |
It's not ideal, but you could apply the squircle shape to a normal |
For me the issue was fixed by just manually looked up the color codes. import { useColorScheme } from "react-native"
const theme = useColorScheme();
<SquircleView
style={style}
squircleParams={{
cornerSmoothing: 1,
cornerRadius: 20,
fillColor : theme == 'light' ? 'rgb(0, 122, 255)' : 'rgb(10, 132, 255)'
}}
/> Works fine for my use case. Thanks! |
Glad you found a solution for your use case. Ideally, I think you still want to use |
I get the following error:
"[object Object]" is not a valid color or brush
The text was updated successfully, but these errors were encountered: