Reference version

AccessoryWidgetBackground

A SwiftUI adaptive background view that provides a standard appearance based on the the widget's environment.

iOS
Bundled version:
~55.0.11

For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.

Expo UI AccessoryWidgetBackground matches the official SwiftUI AccessoryWidgetBackground API and creates an adaptive background view that provides a standard appearance based on the the widget's environment.

Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

Basic accessory widget background

BasicAccessoryWidgetBackground.tsx
import { AccessoryWidgetBackground, VStack, Text, ZStack } from '@expo/ui/swift-ui'; export default function BasicAccessoryWidgetBackground() { return ( <ZStack> <AccessoryWidgetBackground /> <VStack> <Text>MON</Text> </VStack> </ZStack> ); }

API

import { AccessoryWidgetBackground } from '@expo/ui/swift-ui';

No API data file found, sorry!