SafeAreaView

A SafeAreaView component with dynamic theme-based styling for React Native.

Installation

Terminal
npx flexnative-cli add "https://registry.flexnative.com/c/safe-area-view.json"

Usage


Importing
import { SafeAreaView } from "@/components/ui/safe-area-view";
Using
<SafeAreaView>
<Text>Content inside SafeAreaView</Text>
</SafeAreaView>

API

SafeAreaView

A wrapper that adjusts the content area to account for safe areas on devices.


PropTypeDescriptionDefault
styleStyleProp<ViewStyle>Additional styles for the container.-
...propsReact.ComponentProps&lt;typeof RNSafeAreaView&gt;Additional native SafeAreaView props.-