Releases: SrBrahma/react-native-shadow-2
Releases · SrBrahma/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
stretch
property - #7.disabled
property - Easy and performance-friendly way to disable the shadow (but to keep rendering the children).containerViewProps
property.childrenViewProps
property.
Changes
-
Renamed
viewStyle
tostyle
. -
Renamed
containerViewStyle
tocontainerStyle
. -
Renamed
finalColor
toendColor
, to follow thestart/end
pattern of the following change. -
left
/right
insides
andcorners
were changed tostart
/end
for RTL friendliness -
sides
andcorners
properties are now objects instead of arrays.Note that you may still use
borderTopLeftRadius
etc instyle
besidesborderTopStartRadius
if you want to.
Removals
size
property. The size now can only be defined in the Shadow's or child'sstyle
'swidth
andheight
properties.radius
property. The radii now can only be defined in the Shadow's or child'sstyle
'sborderRadius
related properties, such asborderTopStartRadius
/borderTopLeftRadius
etc.-
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.getChildRadius
andgetViewStyleRadius
.
Improvements
- Significant performance and RAM usage due to general refactorings, SVGs' simplification (with the same appearance), improved memoizations and micro performance improvements.
- Now using
colord
package instead ofpolished
to 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.