UNPKG

react-native-responsive-screen-font

Version:

Make React Native views responsive for all devices screens and fonts with the use of 4 simple methods.

15 lines (13 loc) 578 B
declare module "react-native-responsive-screen-font" { import { Component } from "react"; export function widthPercentageToDP(widthPercent: string | number): number; export function heightPercentageToDP(heightPercent: string | number): number; export function widthPercentageToFonts(widthPercent: string | number): number; export function heightPercentageToFonts( heightPercent: string | number ): number; export function listenOrientationChange( screenClassComponent: Component<any, any> ): void; export function removeOrientationListener(): void; }