Closed troZee closed 4 years ago
Thanks for the feature request @troZee. I believe the corners are already somewhat rounded, do you have a screenshot of the difference before/after this code?
My main concern is that it's more work to support custom drawables like this, since they need to be tested before every new release. More code execution paths make maintenance more complex.
I believe the corners are already somewhat rounded, do you have a screenshot of the difference before/after this code?
I forgot, that we use version 1.0.2, and I added this patch package to our codebase. IDK, how about higher versions.
My main concern is that it's more work to support custom drawables like this
Totally agree with you. It would not be implemented like this due reasons, that you have provided. This should be a class, which will generate rounded corners programmatically eg https://stackoverflow.com/a/57763551/4247480 Sorry for confusing.
do you have a screenshot of the difference before/after this code?
Before
After
I see, that we also added some margins. In Before
case there is no sense to add rounded corner feat.
To summarize it: Can we add margin prop ? Because then corner radius property has any sense
if you agree on that, I propose to implement above those 2 features as follow:
Snackbar.show({
margin: {top: 0, right:0, bottom:0, left:0},
cornerRadius: 4,
});
It would be better, if we could pass Stylesheet prop, but I don't know how to parse it on android and iOS side.
Margins have been proposed in https://github.com/cooperka/react-native-snackbar/pull/137; that PR is blocked on feedback that needs to be addressed by the submitter. If you'd like to address my feedback and submit an updated PR for margins, feel free! Thanks.
Closing this issue since corner radius will likely not be supported, but I will still see any replies you post.
Hey,
Thank you for developing this libs. Currently I am using this lib in my existing project. I would like to discus with @cooperka @remstos about below feature, before I start developing new feature
Feature Request: As developer, I would like to have a ability to change border radius
Possible implementation I added patch-package to my project as follow: