Open dantman opened 7 years ago
Ideally polyfill/Ripple would drop the elevation array, Ripple would instead implement it, Ripple would also accept a number when the elevation doesn't change, and Button and other components would stop re-implementing elevation changes on tap and the cross-platform handling that Ripple does.
The
elevation
property for the<Ripple>
component inlib/Ripple.js
does not work properly cross-platform.On Android the
elevation
property is passed to aView
. Passing a number works, passing an array causes anError while updating property 'elevation' of a view managed by: RCTView
error.On iOS the
elevation
property is passed to the<Ripple>
polyfill component inlib/polyfill/Ripple.js
. Passing an array of two numbers works, passing a number results in an "Invalid propelevation
of typenumber
supplied toRipple
, expectedarray
" warning and does not work.