rn-custom-style-sheet
Version:
React Native component to select a specific value from a range of values.
11 lines (9 loc) • 354 B
text/typescript
import type { ThemeContextType } from '../../Context';
import type { ScreenResolutionType } from '../../Reducer';
import { useThemeContext } from '../UseThemeContext';
export default function useScreenResolution(): ScreenResolutionType {
const {
state: { screenResolution },
}: ThemeContextType = useThemeContext();
return screenResolution;
}