react-native-responsive-screen-font
Version:
Make React Native views responsive for all devices screens and fonts with the use of 4 simple methods.
26 lines (18 loc) • 579 B
Flow
// @flow
import type { Component } from "react";
declare export function widthPercentageToDP(
widthPercent: string | number
): number;
declare export function heightPercentageToDP(
heightPercent: string | number
): number;
declare export function widthPercentageToFonts(
widthPercent: string | number
): number;
declare export function heightPercentageToFonts(
heightPercent: string | number
): number;
declare export function listenOrientationChange(
screenClassComponent: Component<any, any>
): void;
declare export function removeOrientationListener(): void;