# react-native-gradient-box-expo

> Gradient box component for React Native with Expo

Latest version **0.1.1** (published 2018-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-gradient-box-expo
pnpm add react-native-gradient-box-expo
yarn add react-native-gradient-box-expo
bun add react-native-gradient-box-expo
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-04-19 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | syumai |
| Maintainers | syumai |
| Keywords | react-native, expo |

## Links

- npm: https://www.npmjs.com/package/react-native-gradient-box-expo
- Repository: https://github.com/maricuru/react-native-gradient-box/expo
- npm.io page: https://npm.io/package/react-native-gradient-box-expo

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.1

## Recent versions

- 0.1.1 (latest) — 2018-04-19

## README

# react-native-gradient-box-expo

* Component of box with Gradient border

![ScreenShot of GradientBox](https://raw.githubusercontent.com/maricuru/react-native-gradient-box/images/screenshot.png)

## Install

* `npm install --save react-native-gradient-box-expo`

## Usage

```js
import GradientBox from 'react-native-gradient-box-expo';

export default class App extends React.Component {
  render() {
    return (
      <View>
        <GradientBox
          colors={['#fcc', '#cfc', '#ccf']}
          start={[1, 0]}
          end={[0, 1]}
          borderWidth={5}
          borderRadius={5}
          style={{ padding: 5 }}
        >
          <Text>Hello, GradientBox!</Text>
        </GradientBox>
      </View>
    );
  }
}
```

## Props

* Extended from LinearGradient

  * colors (required)
  * start
  * end
  * location

* Other props
  * borderWidth (required)
  * borderRadius
  * containerStyle
  * style

---
_Source: https://npm.io/package/react-native-gradient-box-expo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
