# react-native-img-button

> ##Usage

Latest version **1.0.1** (published 2015-12-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-img-button
pnpm add react-native-img-button
yarn add react-native-img-button
bun add react-native-img-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.1 |
| Published | 2015-12-05 |
| First published | 2015-12-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | MiincGu |
| Maintainers | miincgu |

## Links

- npm: https://www.npmjs.com/package/react-native-img-button
- Repository: https://MiincGu@github.com/MiincGu/react-native-image-button
- Homepage: https://github.com/MiincGu/react-native-image-button#readme
- Issues: https://github.com/MiincGu/react-native-image-button/issues
- npm.io page: https://npm.io/package/react-native-img-button

## Recent versions

- 1.0.1 (latest) — 2015-12-05
- 1.0.0 — 2015-12-05

## README

#React Native Image Button

##Usage

```javascript
"use strict";

import React from "react-native";
import ImageButton from "react-native-img-button";

let {
  Dimensions,
  NetInfo,
  StyleSheet,
  Text,
  View,
  Image,
} = React;

export default class Main extends React.Component {
  onPressButton() {
    console.log("Pressed!");
  }
  
  render() {
    return (
      <View style={ styles.container }>
        <ImageButton
          style={ styles.btn }
          appearance={ {
            normal: require("btn_normal.png"),
            highlight: require("btn_normal_pressed.png")
          } }
          onPress={ this.onPressButton }/>
      </View>
    );
  }
}

let styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  btn: {
    width: 50,
    height: 50,
  },
});
```

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