Modifiers
gridCellUnsizedAxes
Asks grid layouts not to offer the view extra size in the specified axes.
gridCellUnsizedAxes(axes)
| Parameter | Type | Description |
|---|---|---|
axes(optional) | 'vertical' | 'horizontal' | The dimensions in which the grid shouldn’t offer the view a share of any available space. This prevents a flexible view like a Spacer, Divider, or Color from defining the size of a row or column. |
Asks grid layouts not to offer the view extra size in the specified axes.
Returns: ModifierConfig
A view that doesn’t ask an enclosing grid for extra size in one or more axes.
Works with
Works only in some places
Works only on a view in a Grid. 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.
- VStack
- HStack
- ZStack
- LazyVStack
- LazyHStack
- Group
- Spacer
- Divider
- Overlay
- ScrollView
- Button
- Toggle
- Checkbox
- Slider
- Picker
- DatePicker
- ColorPicker
- Link
- ControlGroup
- Menu
- ContextMenu
- TextField
- SecureField
- Text
- Label
- Image
- List
- Form
- Section
- DisclosureGroup
- SwipeActions
- BottomSheet
- Alert
- ConfirmationDialog
- Popover
- ProgressView
- Gauge
- TabView
- AccessoryWidgetBackground
Sources
The original Expo docs for this page:
- gridCellUnsizedAxes (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)