useBreakpointValue | NativeBase | Universal Components for React and React Native

Search
K
Hire us
If you are starting a new project, please try gluestack-ui for better performance and new design.
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
Copy
import { useBreakpointValue } from 'native-base';
Return value
The useBreakpointValue hook returns the value for the current breakpoint.
Usage
Playground
Nativebase logo
MadeWithNativeBase
Gluestack logo
gluestack-ui