# @fractal-software/size-class

> React Native library to improve width and height handling

Latest version **4.0.2** (published 2023-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fractal-software/size-class
pnpm add @fractal-software/size-class
yarn add @fractal-software/size-class
bun add @fractal-software/size-class
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2023-08-29 |
| First published | 2023-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 41.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | BrandonMA |
| Maintainers | bma98, baltazar-gr, alexruiz98 |

## Links

- npm: https://www.npmjs.com/package/@fractal-software/size-class
- npm.io page: https://npm.io/package/@fractal-software/size-class

## Dependencies (1)

- [ua-parser-js](https://npm.io/package/ua-parser-js.md) ^0.7.24

## Recent versions

- 4.0.2 (latest) — 2023-08-29
- 4.0.1 — 2023-07-21
- 4.0.0 — 2023-05-23
- 4.0.0-beta.1 — 2023-03-23

## README

# @fractal-software/size-class

React Native library to handle different sizes inspired on iOS size classes.

## Important Concepts

### Size

There are 4 possible values for a Size(enum).

Compact(phone). Medium(Half an iPad). Large(11 inch iPad). Extra Large(12.9 iPad).

## DeviceType

We use expo-device library to check which kind of device we are interacting with.

### SizeGroup

A SizeGroup is an array of both a Size and a DeviceType.

---
_Source: https://npm.io/package/@fractal-software/size-class · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
