# react-native-device-helpers

> A library of little helpers for device specific code in your React Native App

Latest version **0.0.1** (published 2017-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-device-helpers
pnpm add react-native-device-helpers
yarn add react-native-device-helpers
bun add react-native-device-helpers
```

## 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 | 2017-10-09 |
| First published | 2017-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sebastian Döll |
| Maintainers | katallaxie |
| Keywords | react-native, ios, android, iphone, ipad |

## Links

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-10-09

## README

[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)
[![Volkswagen](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

# react-native-device-helpers

A library of little helpers for device specific code in your React Native App.

## Getting Started

> Using `nvm` is highly recommended as to manage different Node versions

```
npm i react-native-device-helpers --save
```

### Example ###

```js
// in component.style.js

import { StyleSheet } from 'react-native';
import { ifIphoneX } from 'react-native-device-helpers'

export default StyleSheet.create({
    header:{
        height: 120,
        width: 60,
        ...ifIphoneX({
            paddingTop: 50
        }, {
            paddingTop: 20
        })
    },
});
```

## License
[MIT](/LICENSE)

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