Skip to content

Conversation

@danieldunderfelt
Copy link
Contributor

@danieldunderfelt danieldunderfelt commented Nov 27, 2016

This PR fixes #114 by removing the animated wrapper around the button icon and moving all those styles and animations to the button's outer View. An additional wrapping view was added to attach the shadow to. Apparently an immediate child can provide the background in shadow calculations, so we do not need to attach a background to the shadow View. This wrapper also gets the buttonColor set as background to avoid the warning.

As a side-effect, setting the outRangeScale makes the whole button scale rather than only the icon, which I consider a fix.

Note that as of writing, I have only tested this PR on iOS (React-native 0.38) so I cannot say if #109 is affected in any way.

@cooperka
Copy link

Thanks for the fix @danieldunderfelt! I'm using this in production now and it works great. I hope this PR will get merged soon.

@danieldunderfelt
Copy link
Contributor Author

@cooperka yeah it needed to be done. Cheers!

@mastermoo
Copy link
Owner

good, someone tested it for me, even in production environment. let's merge it then. thanks @danieldunderfelt and @cooperka

@mastermoo mastermoo merged commit 5669da1 into mastermoo:master Dec 19, 2016
@SudoPlz
Copy link
Contributor

SudoPlz commented Jan 10, 2017

Hey guys... Any idea why I'm still having this problem in "react-native-action-button": "2.0.19"?

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

Successfully merging this pull request may close these issues.

RCTView has a shadow set but cannot calculate shadow efficiently

4 participants