-
Notifications
You must be signed in to change notification settings - Fork 60
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
fix(topRightBorder): fixed shadow on topRightCorner #33
Conversation
Hi @timqha, thanks for the report and PR. Can you make a reproducible example of your issue in https://snack.expo.dev? I never had an issue with it nor had a report about it, and I haven't touched that specific code for months. The lib Snack demo is working fine: https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox Not saying you are wrong, but I need to know at what conditions this is happening. |
Just found an issue in the lib code: I was looking at the bottomRight corner, as both should use the same horizontal positioning where you did the change: both This is probably the original cause of your issue. I would still like a repro of your issue so we can be sure that this typo was the issue and proper fix it. You may also just test the typo fix from |
Hey, Thanks for checking it. I hope you have some ideas (this error is only reproducible on React-native in expo is not reproducible) |
It was using bottomRight instead of topRight in translateX value
This is surely what is happening. You are using in your example topRightRadius: 10 but not bottomRightRadius, so bottomRightRadius is 0. The translateX value for topRight is, as I found out and said above, using wrongly bottomRightRadius instead of topRightRadius, so it's translating 0 instead of 10. As For quickness, I've edited your change to properly fix this issue. I will then merge and update the package. Thanks for the bug report! |
Just deployed it as 6.0.1. In a few moments it will be available to be updated using your package manager. Tell me if it worked! Once again, thanks for finding it! |
thanks for the corrections, I really missed this point. |
Hi, When I used react-native-shdow-2 library, the right corner was missing.
I added a small fix, I hope you can check it.