react-native-shadow-2

Cross-platform shadow for React Native. Supports Android, iOS, Web, and Expo

MIT License

Downloads
141.9K
Stars
607
Committers
7
react-native-shadow-2 - v7.0.7 Latest Release

Published by SrBrahma over 1 year ago

react-native-shadow-2 - v7.0.0

Published by SrBrahma about 2 years ago

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

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.
react-native-shadow-2 -

Published by SrBrahma over 2 years ago

Package Rankings
Top 2.11% on Npmjs.org
Badges
Extracted from project README
npm TypeScript npm PRs Welcome
Related Projects