View-relative coordinates
Measure a whole screen or a smaller panel. Each provider establishes its own coordinate space.
Coordinates →REACT NATIVE · NEW ARCHITECTURE
Get the bounds of folds, camera cutouts, and system UI on iOS and Android. Use them to keep content and controls clear.
react-native-reserved-regions
Measure a whole screen or a smaller panel. Each provider establishes its own coordinate space.
Coordinates →A tagged union distinguishes divisions from occlusions. Divisions also tell you whether content is hidden.
API reference →UIKit reserved regions and Android folding features share an API with documented platform differences.
Platform support →Wrap a view in ReservedRegionsProvider and read its regions with useReservedRegions.
Pair region frames with safe area insets when your screen needs both edge spacing and information about its interior.
Use it with safe area context →const regions = useReservedRegions();
for (const region of regions) {
if (region.kind === 'division') {
const hidden = region.occludesContent;
}
const { x, y, width, height } = region.frame;
}
The native example compares full-screen, inset, and content-box providers, with safe area insets alongside reserved regions.