npm.io
4.0.2 • Published 3 years ago

@fractal-software/size-class

Licence
MIT
Version
4.0.2
Deps
1
Size
42 kB
Vulns
0
Weekly
0

@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.