Skip to content
This repository has been archived by the owner. It is now read-only.

branikclimbs/rn-shadows

Repository files navigation

rn-shadows

Multi layer shadow component for react native

React Native Bottom Sheet

Installation

Install the library using either Yarn:

yarn add rn-shadows

or npm:

npm install rn-shadows

Usage

import Shadow from "rn-shadows";

// ...

<Shadow
 elevation={6}
 borderRadius={12}
 shadows={[
  [-5, 16, 14, '#17479E', 0.02],
  [5, 16, 14, '#17479E', 0.02],
  [-2, 4, 6, '#17479E', 0.03],
  [2, 4, 6, '#17479E', 0.03],
 ]}
>
 <View style={{ padding: 50 }}>
    <Text>Shadow</Text>
 </View>
</Shadow>

License

MIT