react-native-expo-typescript-viewport-units
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

This is highly based in the react-native-expo-viewport-units. I have developed for TypeScript support and code reusability.

The following documentation is based on the original package as well.

Usage

import { vw, vh, vmin, vmax } from 'react-native-expo-typescript-viewport-units';
const styles = StyleSheet.create({
  Container: {
    width: vmin(95),
    height: vmax(70),
    padding: vw(2.5),
    margin: vh(5),
  },
  Font: {
    fontSize: vw(3.75),
  },
});

Package Sidebar

Install

npm i react-native-expo-typescript-viewport-units

Weekly Downloads

2

Version

1.0.1

License

UNLICENSED

Unpacked Size

3.98 kB

Total Files

6

Last publish

Collaborators

  • nachogassie