Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
Data displayReact Native

Change summary

Review before and after values for the changes the host reports.

Public APILumenChangeSummaryReact Native

Native example

Use Change summary

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Change summary rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Change summary demo
tsx
import { LumenChangeSummary } from '@santi020k/lumen-react-native'

export const ReviewChanges = () => (
  <LumenChangeSummary
    items={[
      { after: 'Bob', before: 'Alice', changed: true, id: 'owner', label: 'Owner' },
      { after: 'Active', before: 'Active', changed: false, id: 'status', label: 'Status' }
    ]}
    label="Review changes"
    summary="1 changed field"
  />
)
React Native
Lists the before and after values of the fields the host reports, striking changed values and muting unchanged ones.

Reference

Public API

The primary shared and platform-specific options exposed by LumenChangeSummary.

APIValues or typeDefaultDescription
items / label / summarychanged fields / heading / count textrequired / Changes / noneThe host decides what changed and writes the summary text.

Native behavior

Design and accessibility

When to use it

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Accessibility

A titled section whose rows read the field, its state, and both values in order.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives