GhostUIProvider

Root provider for theming, toast, and keyboard-avoiding layout defaults.

GhostUIProvider
Theme + NativeWind context
Theme

Installation

npx ghost-ui-native add provider

Usage

import { GhostUIProvider } from '@/components/ghost-ui-provider';
<SafeAreaProvider>
  <GhostUIProvider defaultTheme="system">
    <App />
  </GhostUIProvider>
</SafeAreaProvider>

Notes

  • Also wrap with SafeAreaProvider from react-native-safe-area-context.
  • Import global.css once at your app entry.