useBreakpointValue | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
IMPORTANT MESSAGE — If you are starting a new project with NativeBase, we recommend using gluestack-ui instead.
Explore gluestack-ui
useBreakpointValue
useBreakpointValue returns the value for the current breakpoint based on the provided responsive values object. It is also responsive to window resizing and returning the appropriate value according to 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