Expo UI and Router for iOS
Modifiers

accessibilityElement

Controls how a view's child accessibility elements are exposed, mirroring SwiftUI's accessibilityElement(children:). It creates a new accessibility element (or modifies the existing one) and applies the chosen behavior to the subtree.

accessibilityElement(children)

ParameterTypeDescription
children(optional)'contain' | 'ignore' | 'combine'How the child accessibility elements are treated
  • ignore - hide the children; the new element starts with no properties, so pair it with accessibilityLabel (default).
  • combine - merge the children's accessibility properties into the new element.
  • contain - keep the children as accessible elements, grouped in the new element as a container (navigated in order).

. Default: 'ignore' |

Controls how a view's child accessibility elements are exposed, mirroring SwiftUI's accessibilityElement(children:). It creates a new accessibility element (or modifies the existing one) and applies the chosen behavior to the subtree.

Complements accessibilityHidden, which hides a single leaf, by acting on the whole subtree.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

On this page