Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

gridColumnAlignment

Overrides the default horizontal alignment of the grid column that the view appears in.

gridColumnAlignment(alignment)

iOS 16+
ParameterTypeDescription
alignment(optional)'center' | 'leading' | 'trailing'The HorizontalAlignment guide to use for the grid column that the view appears in.

Overrides the default horizontal alignment of the grid column that the view appears in.

Returns: ModifierConfig

A view that uses the specified horizontal alignment, and that causes all cells in the same column of a grid to use the same alignment.

Works with

Works only in some places

Works only on a view in a Grid.Row. Grid is in @expo/ui/swift-ui, but it has no Expo docs page.

You can add it to any of these components, but it does something only in the place above.

Sources

The original Expo docs for this page:

On this page