πŸš€ Launch mobile apps 10x faster with Next.jsGet NextNative β†’
🧩 Components
πŸ“± Screen Container

ScreenContainer

A layout wrapper for mobile screens. It provides:

β€’ Consistent spacing
β€’ Safe area padding (avoids notches and bottom tabs)
β€’ Scroll support (if needed)

βœ… When to use:

Wrap any mobile screen in ScreenContainer to:

β€’ Make sure content doesn’t get hidden behind status bar, tabs, or keyboard
β€’ Apply common styles across screens

import ScreenContainer from "@/components/ScreenContainer";
 
export default function SettingsScreen() {
  return (
    <ScreenContainer>
      <div>Settings screen</div>
    </ScreenContainer>
  );
}

Then add it in app.tsx:

export default function App() {
  return (
    <IonTabs>
      <IonRouterOutlet>
        {/* Other screens */}
 
        <Route exact path="/app/settings" component={SettingsScreen} />
 
        <Route exact path="/app">
          <Redirect to="/app/settings" />
        </Route>
      </IonRouterOutlet>
 
      <IonTabBar slot="bottom">
        {/* Other tabs */}
 
        <IonTabButton tab="/app/settings" href="/app/settings">
          <Settings size={22} />
        </IonTabButton>
      </IonTabBar>
    </IonTabs>
  );
}

NextNative Docs