# react-native-iphone-se-helper

> utils for iPhone SE device size in react-native

Latest version **0.0.2** (published 2019-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-iphone-se-helper
pnpm add react-native-iphone-se-helper
yarn add react-native-iphone-se-helper
bun add react-native-iphone-se-helper
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-03-07 |
| First published | 2019-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | youngsoohan |
| Maintainers | youngsoohan |
| Keywords | react-native, utils, ios, android, react, font, fontSize, font-size, iPhone SE, se, size |

## Links

- npm: https://www.npmjs.com/package/react-native-iphone-se-helper
- Repository: https://github.com/heyman333/react-native-iphone-se-helper
- Issues: https://github.com/heyman333/react-native-iphone-se-helper/issues
- npm.io page: https://npm.io/package/react-native-iphone-se-helper

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2019-03-07
- 0.0.1 — 2019-03-06

## README

# react-native-iphone-se-helper

This package was created with strong motivation for [react-native-iphone-x-helper](https://github.com/ptelad/react-native-iphone-x-helper) (author: [ptelad](https://github.com/ptelad))

## install 

```bash
yarn add react-native-iphone-se-helper
#or 
npm install react-native-iphone-se-helper --save
```

## API

### isIphoneSE(): boolean 

returns whether the device is a iPhons SE or others

### concernSESize(originalSize: number, seSize: number): number

determines the size by dividing whether it is SE or not


## Example
```js
import { isIphoneSE, concernSESize } from "react-native-iphone-se-helper";

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center",
    alignItems: "center",
    backgroundColor: "#F5FCFF"
  },
  welcome: {
    fontSize: concernSESize(20, 11),
    textAlign: "center",
    margin: isIphoneSE() ? 5 : 10
  },
  instructions: {
    textAlign: "center",
    color: "#333333",
    marginBottom: 5
  }
});

```

## License
MIT

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