Expo UI and Router for iOS
Modifiers

padding

Sets padding on a view. Supports individual edges or shorthand properties.

padding(params)

ParameterTypeDescription
params(optional){ all: number, bottom: number, horizontal: number, leading: number, top: number, trailing: number, vertical: number }The padding parameters: top, bottom, leading, trailing, horizontal, vertical and all.

Sets padding on a view. Supports individual edges or shorthand properties.

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