react-native-full-responsive
Version:
Create a fully responsive React Native app for all supported platforms
10 lines • 641 B
TypeScript
import { type DependencyList } from 'react';
import type { NamedStyles } from '../types';
/**
* A hook is provided for createRStyle to create a dynamic responsive scale. This hook generates a new style when there are changes in dimensions, the parsing method, type, or bases.
* @param styles
* @param deps dependency list to regenerate styles after changing them, and default is an empty array
* @returns a responsive styles `object`
*/
export declare const useRStyle: <T extends NamedStyles<any> | NamedStyles<T>>(styles: T | (() => T), deps?: DependencyList) => import("../types").StyleType<T>;
//# sourceMappingURL=useRStyle.d.ts.map