React Native Shadow View for Android based on L-Briand/ShadowLayout library. Use default RN View component for ios fallback.
yarn add @vesselsoft/react-native-shadow
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>;
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT