Version: 3.0.0-next.36

useBreakpointValue

useBreakpointValue is a custom hook which returns the value for the current breakpoint from the provided responsive values object. This hook also responds to the window resizing and returning the appropriate value for the new window size.

Import#

import { useBreakpointValue } from 'native-base';

Return value#

The useBreakpointValue hook returns the value for the current breakpoint.

Usage#