Skip to content

vesselsoft/react-native-android-shadow

Repository files navigation

@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