# nanokit-button

> A button component for React Native

Latest version **1.0.0** (published 2017-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install nanokit-button
pnpm add nanokit-button
yarn add nanokit-button
bun add nanokit-button
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-30 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tiaanduplessis |
| Maintainers | tiaanduplessis |

## Links

- npm: https://www.npmjs.com/package/nanokit-button
- Repository: https://github.com/tiaanduplessis/nanokit-button
- Issues: https://github.com/tiaanduplessis/nanokit-button
- npm.io page: https://npm.io/package/nanokit-button

## Dependencies (1)

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

## Recent versions

- 1.0.0 (latest) — 2017-10-30

## README

<h1 align="center">nanokit-button</h1>
<div align="center">
  <strong>A button component for React Native</strong>
</div>
<br>
<div align="center">
  <a href="https://npmjs.org/package/nanokit-button">
    <img src="https://img.shields.io/npm/v/nanokit-button.svg?style=flat-square" alt="npm package version" />
  </a>
  <a href="https://npmjs.org/package/nanokit-button">
  <img src="https://img.shields.io/npm/dm/nanokit-button.svg?style=flat-square" alt="npm downloads" />
  </a>
  <a href="https://github.com/feross/standard">
    <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square" alt="standard JS linter" />
  </a>
  <a href="https://github.com/prettier/prettier">
    <img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="prettier code formatting" />
  </a>
  <a href="https://travis-ci.org/tiaanduplessis/nanokit-button">
    <img src="https://img.shields.io/travis/tiaanduplessis/nanokit-button.svg?style=flat-square" alt="travis ci build status" />
  </a>
  <a href="https://github.com/tiaanduplessis/nanokit-button/blob/master/LICENSE">
    <img src="https://img.shields.io/npm/l/nanokit-button.svg?style=flat-square" alt="project license" />
  </a>
  <a href="http://makeapullrequest.com">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="make a pull request" />
  </a>
</div>
<br>
<div align="center">
  <a href="https://github.com/tiaanduplessis/nanokit-button/watchers">
    <img src="https://img.shields.io/github/watchers/tiaanduplessis/nanokit-button.svg?style=social" alt="Github Watch Badge" />
  </a>
  <a href="https://github.com/tiaanduplessis/nanokit-button/stargazers">
    <img src="https://img.shields.io/github/stars/tiaanduplessis/nanokit-button.svg?style=social" alt="Github Star Badge" />
  </a>
  <a href="https://twitter.com/intent/tweet?text=Check%20out%20nanokit-button!%20https://github.com/tiaanduplessis/nanokit-button%20%F0%9F%91%8D">
    <img src="https://img.shields.io/twitter/url/https/github.com/tiaanduplessis/nanokit-button.svg?style=social" alt="Tweet" />
  </a>
</div>
<br>
<div align="center">
  Built with ❤︎ by <a href="https://github.com/tiaanduplessis">tiaanduplessis</a> and <a href="https://github.com/tiaanduplessis/nanokit-button/contributors">contributors</a>
</div>

<h2>Table of Contents</h2>
<details>
  <summary>Table of Contents</summary>
  <li><a href="#about">About</a></li>
  <li><a href="#install">Install</a></li>
  <li><a href="#usage">Usage</a></li>
  <li><a href="#contribute">Contribute</a></li>
  <li><a href="#license">License</a></li>
</details>

## About

A simple customizable button component for [React Native](https://facebook.github.io/react-native/). Uses [TouchableOpacity](https://facebook.github.io/react-native/docs/touchableopacity.html) on iOS and [TouchableNativeFeedback](https://facebook.github.io/react-native/docs/touchablenativefeedback.html) on Android.

## Install

```sh
$ npm install nanokit-button
# OR
$ yarn add nanokit-button
```

## Usage

```jsx
import React from 'react'
import { View, StyleSheet } from 'react-native'
import Button from 'nanokit-button'

const Example = () => (
  <View style={styles.container}>
    <Button width={200} text="Hello"/>
  </View>
)

const styles = StyleSheet.create({
  container: {flex: 1, justifyContent: 'center', alignItems: 'center'}
})
```

Results in:

<img src="example-ios.gif" alt="example">

See the [available props](index.js) for more info

## Contributing

Contributions are welcome!

1. Fork it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

Or open up [a issue](https://github.com/tiaanduplessis/nanokit-button/issues).

## License

Licensed under the MIT License.

---
_Source: https://npm.io/package/nanokit-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
