# react-native-block

> A customizable wrapper for react native view

Latest version **0.0.1** (published 2020-11-27) · MIT license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2020-11-27 |
| First published | 2020-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Salman |
| Maintainers | salmansantino |

## Links

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

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^17.0.1
- [react-native](https://npm.io/package/react-native.md) ^0.63.3

## Recent versions

- 0.0.1 (latest) — 2020-11-27

## README

# react-native-block
A simple and customizable wrapper component for React Native View.
## Usage
 Instead of writing this : 
```js
<View style={{ flex: 2, justifyContent: 'center', alignItems: 'center', marginTop: 20 }}>
  //Other components
</View>
```
You can just do this :

```js
<Block flex={2} center middle mt={20}>
  // Your components
</Block>
```
For TouchableOpacity :
```js
<TouchableBlock onPress={handler} center middle>
  // Your components
</TouchableBlock>
```

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