# @wave909/react-native-inset-shadow

> Inset shadows for react native components

Latest version **2.1.2** (published 2022-08-07) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install @wave909/react-native-inset-shadow
pnpm add @wave909/react-native-inset-shadow
yarn add @wave909/react-native-inset-shadow
bun add @wave909/react-native-inset-shadow
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2022-08-07 |
| First published | 2022-08-07 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rohail Altaf |
| Maintainers | vadkou, kiri_rin |
| Keywords | react, native, inset, shadow, component |

## Links

- npm: https://www.npmjs.com/package/@wave909/react-native-inset-shadow
- Repository: https://github.com/wave909/react-native-inset-shadow
- Homepage: https://github.com/wave909/react-native-inset-shadow#readme
- Issues: https://github.com/wave909/react-native-inset-shadow/issues
- npm.io page: https://npm.io/package/@wave909/react-native-inset-shadow

## Dependencies (1)

- [react-native-drop-shadow](https://npm.io/package/react-native-drop-shadow.md) 0.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.1.2 (latest) — 2022-08-07
- 2.1.1 — 2022-08-07
- 2.1.0 — 2022-08-07

## README

[![npm version](https://badge.fury.io/js/@wave909%2Freact-native-inset-shadow.svg)](https://badge.fury.io/js/@wave909%2Freact-native-inset-shadow)

# @wave909/react-native-inset-shadow
Inset shadows for react native components

Fork of https://github.com/rohailaltaf/react-native-inset-shadow that adds support for:
 * Full Android styling
 * TypeScript

<p align="left">
<img src="./.github/images/img.png" height="150" />
</p>

## Setup

This library is available on npm, install it with: `npm i @wave909/react-native-inset-shadow` or `yarn add @wave909/react-native-inset-shadow`

## Usage

```js
import InsetShadow from 'react-native-inset-shadow'
import { Text, View } from 'react-native' 

const ViewWithInsetShadow = () => {
  return (
    <View style={{ height: 150 }}>
      <InsetShadow>
        <View style={{ flex: 1, justifyContent: 'center', alignSelf: 'center'}}>
          <Text>This view has an inset shadow!</Text>
        </View>
      </InsetShadow>
    </View>
  )
}
```

## Props

| Name          | Type   | Default | Description                                                              |
| ------------- | ------ | ------- | ------------------------------------------------------------------------ |
| children      | node   | null    | **(Required)** child components to sit inside the view                   |
| left          | bool   | true    | (Optional) show left inset shadow?                                       |
| top           | bool   | true    | (Optional) show top inset shadow?                                        |
| right         | bool   | true    | (Optional) show right inset shadow?                                      |
| bottom        | bool   | true    | (Optional) show bottom inset shadow?                                     |
| shadowColor   | string | black   | (Optional) shadow color                                                  |
| shadowOffset  | number | 1       | (Optional) how much to offset the shadow on the horizontal/vertical axis |
| shadowOpacity | number | 0.5     | (Optional) shadow opacity                                                |
| shadowRadius  | number | 3       | (Optional) shadow radius                                                 |
| elevation     | number | 5       | (Optional) shadow elevation for android                                  |
| containerStyle| object | {}      | (Optional) style for the container                                       |

---
_Source: https://npm.io/package/@wave909/react-native-inset-shadow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
