react-native-responsiveness
Version:
Make React Native views responsive for all devices with the use of 2 simple methods.
9 lines (7 loc) • 364 B
TypeScript
declare module 'react-native-responsive-screen' {
import { Component } from 'react';
export function w(widthPercent: string | number): number;
export function h(heightPercent: string | number): number;
export function listenOrientationChange(screenClassComponent: Component<any, any>): void;
export function removeOrientationListener(): void;
}