rn-custom-style-sheet
Version:
React Native component to select a specific value from a range of values.
10 lines (8 loc) • 335 B
text/typescript
import type { ThemeContextType } from '../../Context';
import { useThemeContext } from '../UseThemeContext';
export default function usePortraitBehaviorInLandscapeMode(): boolean {
const {
state: { withPortraitBehaviorInLandscapeMode },
}: ThemeContextType = useThemeContext();
return withPortraitBehaviorInLandscapeMode;
}