@vesselsoft/react-native-shadow
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

@vesselsoft/react-native-shadow

React Native Shadow View for Android based on L-Briand/ShadowLayout library. Use default RN View component for ios fallback.

Installation

yarn add @vesselsoft/react-native-shadow

Usage

import { Text } from 'react-native';
import { ShadowView, ShadowText } from '@vesselsoft/react-native-shadow';

// ...

<ShadowView
  style={{
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 1,
    },
    shadowOpacity: 0.18,
    shadowRadius: 1.0,
  }}
>
  <ShadowText>Hello World!</ShadowText>
</ShadowView>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @vesselsoft/react-native-shadow

Weekly Downloads

1

Version

0.2.5

License

MIT

Unpacked Size

38.4 kB

Total Files

25

Last publish

Collaborators

  • muhrizki