# react-native-xbutton

> react-native-xbutton both support iOS and android

Latest version **1.0.0** (published 2021-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-xbutton
pnpm add react-native-xbutton
yarn add react-native-xbutton
bun add react-native-xbutton
```

## 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 | 2021-06-02 |
| First published | 2021-06-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lylleny |
| Maintainers | lylleny |
| Keywords | test |

## Links

- npm: https://www.npmjs.com/package/react-native-xbutton
- Repository: https://github.com/Lylleny/react-native-xbutton
- Homepage: https://github.com/Lylleny/react-native-xbutton#readme
- Issues: https://github.com/Lylleny/react-native-xbutton/issues
- npm.io page: https://npm.io/package/react-native-xbutton

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-06-02

## README

## Features
1.Pure js solution.
2.Android and iOS both support.
3.Lots of options for button

## Settings
Name          |  Default                        |      Type           |  Description
--------------|---------------------------------|---------------------|-------------------
textStyle     |  null                           |   Object            |  The textStyle  of the Button
style         |  null                           |   Object            |  The style of the Button
onPress       |  {}                             |   Function          |  Touch event of the Button
disabled      |  false                          |   Bool              |  Forbidden touch event
text          |  ""                             |   String            |  The text of the Button
activeOpacity |  0.7                            |   Number            |  The opacity of the Button when was pressed
isLoading     |  false                          |   Bool              |  The loading animation of the Button when was pressed


## Usage
```
import {React} from 'react';
import Button from 'react-native-button';

export default class Example extends React.Componment{
      render(){
      	return(
           <View>
             <Button text={"按钮"} styel={width:80,height:40,backgroundColor:'#f0f0f0'}/>
           </View>
      	)
      }
}

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