Releases: ftzi/react-native-shadow-2
Releases · ftzi/react-native-shadow-2
v7.1.1
v7.0.7
v7.0.0
Major changes to improve the performance, simplify the library usage and improve the Developer Experience. An important update that consolidates this library's maturity.
Features
stretchproperty - #7.disabledproperty - Easy and performance-friendly way to disable the shadow (but to keep rendering the children).containerViewPropsproperty.childrenViewPropsproperty.
Changes
-
Renamed
viewStyletostyle. -
Renamed
containerViewStyletocontainerStyle. -
Renamed
finalColortoendColor, to follow thestart/endpattern of the following change. -
left/rightinsidesandcornerswere changed tostart/endfor RTL friendliness -
sidesandcornersproperties are now objects instead of arrays.Note that you may still use
borderTopLeftRadiusetc instylebesidesborderTopStartRadiusif you want to.
Removals
sizeproperty. The size now can only be defined in the Shadow's or child'sstyle'swidthandheightproperties.radiusproperty. The radii now can only be defined in the Shadow's or child'sstyle'sborderRadiusrelated properties, such asborderTopStartRadius/borderTopLeftRadiusetc.-
Properties removed for the sake of simplicity of this package. Probably no one used them anyway. If you did use them and want or need them, open an issue about it with your use case. They are always active now. Before, they were active by default.getChildRadiusandgetViewStyleRadius.
Improvements
- Significant performance and RAM usage due to general refactorings, SVGs' simplification (with the same appearance), improved memoizations and micro performance improvements.
- Now using
colordpackage instead ofpolishedto deal with colors' alpha.
Fixes
- RTL in web.
- Error when there is more than a child. #38
- Error when there isn't a child. #38 (comment)
- Situational 1-pixel overlap of corners.