Skip to content

Set padding/alignment per item is not supported. #388

@grzegorzdec

Description

@grzegorzdec

Description

In Lumin, PageView, GridLayout and LinearLayout components allow setting padding/alignment per item. In React Native, we use only defaultItemPadding/defaultItemAlignment attributes which set the same values to all items.

Example

<LinearLayout
    localPosition={[-0.5, 0.5, 0]}
    width={0.5}
    height={0.8}
    itemPadding={[
        {index: 0, padding: [0, 0, 0, 0   ]},
        {index: 1, padding: [0, 0, 0, 0.05]},
        {index: 2, padding: [0, 0, 0, 0.1 ]},
        {index: 3, padding: [0, 0, 0, 0.15]}
    ]}
>
    <Text textSize={0.1 } text='Ganymede' textColor={[255, 165, 0, 0.8]} />
</LinearLayout>

Metadata

Metadata

Assignees

Labels

AndroidRelated to Android platform.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions