-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
AndroidRelated to Android platform.Related to Android platform.
Description
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.Related to Android platform.