Component

ScreenContainer

Safe-area screen wrapper with a tablet max width.

ScreenContainer as rendered in the Native-UI Storybook

What it does

  • Top and bottom safe areas
  • Centred content on tablets
  • Optional padding

Import

import { ScreenContainer } from '@polprog/native-ui';

The same module is available as a direct import:

import { ScreenContainer } from '@polprog/native-ui/components/ScreenContainer';

Open in Storybook View source

Related components

← All components

Expo React Native 0.84+ iOS Android TypeScript Accessible