@freakycoder/react-native-helpers
Version:
All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use
29 lines (28 loc) • 1.11 kB
TypeScript
declare const getDeviceLanguage: () => any;
declare const ScreenWidth: number;
declare const ScreenHeight: number;
declare const ScreenScale: number;
declare const ScreenFontScale: number;
declare const WindowWidth: number;
declare const WindowHeight: number;
declare const WindowFontScale: number;
declare const WindowScale: number;
declare const isIOS: boolean;
declare const isAndroid: boolean;
declare const PlatformVersion: string | number;
/**
* @description
* These are the dynamic calculation for the app is on the landscape or portrait mode.
*/
declare const ScreenMin: number;
declare const ScreenMax: number;
/**
* @description
* These are the viewport units for the web or mobile web who wants to use viewport units.
*/
declare const vh: number;
declare const vw: number;
declare const vmin: number;
declare const vmax: number;
declare const isTablet: boolean;
export { vh, vw, vmin, vmax, ScreenMin, ScreenMax, isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, isTablet, getDeviceLanguage, };