Material Shadows For React Native

Category: Others , React Native | July 8, 2018
Author: prscX
Views Total: 31
Official Page: Go to website
Last Update: July 8, 2018
License: MIT

A React Native component to create Material Design inspired shadows for Android.

Features:

  • Convex shadows: The shadows are not only rectangular or circular, they can take any convex shape depending on the view and its content.
  • Support for shadow offsets: The library allows developers to set X and Y offset for the shadows.
  • Support for shadow intensity: The library also has support for setting shadow intensity via shadowAlpha attribute.
  • Shadows for semi-transparent views : The library allows shadows for semi-transparent views.
  • Support for Async Shadow calculations : The library allows the operations to be async to avoid blocking the UI thread for long calculations.
  • Shadow animations : The library supports fade out animation for shadow.

Installation:

# NPM
$ npm react-native-material-shadows --save

Preview:

Material Shadows For React Native