Skip to content

Releases: SrBrahma/react-native-shadow-2

v7.1.1

26 Oct 11:24
28f2ac1
Compare
Choose a tag to compare
  • Fix corners and sides properties not being Partial. #83.
  • Also, read the README about React Native 0.76 brand new built-in shadow! ;)

v7.0.7

14 Apr 16:19
931bf20
Compare
Choose a tag to compare

v7.0.0

10 Aug 17:26
Compare
Choose a tag to compare

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 to style.

  • Renamed containerViewStyle to containerStyle.

  • Renamed finalColor to endColor, to follow the start/end pattern of the following change.

  • left / right in sides and corners were changed to start / end for RTL friendliness

  • sides and corners properties are now objects instead of arrays.

    Note that you may still use borderTopLeftRadius etc in style besides borderTopStartRadius if you want to.

Removals

  • size property. The size now can only be defined in the Shadow's or child's style's width and height properties.
  • radius property. The radii now can only be defined in the Shadow's or child's style's borderRadius related properties, such as borderTopStartRadius/borderTopLeftRadius etc.
  • getChildRadius and getViewStyleRadius. 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.

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 of polished 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.

v6.0.6

20 Jul 23:35
Compare
Choose a tag to compare
  • Fixed Web's Shadow when there are more than one being rendered. #53. Many thanks, @GreyJohnsonGit!