react-native-material-design
react-native-material-design copied to clipboard
Update ripple polyfil to support flex on the touchable
Hey,
I found that on IOS the TouchableOpacity won't respect the child flex (where TouchableNativeFeedback seems to) and that it sometimes requires a kick to force it to flex
pre flex
after flex
(Trying to make the whole area a button)
Could we not use the existing style prop to pass this along - Incase other styles other than flex are wanted? Thoughts?
the existing style
prop updates the inner and outer View within the IOS TouchableOpacity
, I needed to be able to set styles directly on the outer container of TouchableOpacity
, to be able to get the flex needed
We could adjust this to be a generic touchableOpacityStyles
prop?
Better innerStyle/outerSyle handling that works the same with and without the polyfill would be better.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.