v1.31.0
This version introduces support for multiple <List.Item>
accessories via a new accessories
prop.
To migrate your extension manually, you need to ensure that all List.Items
that specify accessoryTitle
and/or accessoryIcon
are updated as follows:
List.Item
with accessoryTitle
List.Item
with accessoryTitle
<List.Item title="List item with accessory title" accessoryTitle="foo" />
// becomes
<List.Item title="List item with accessory title" accessories={[{ text: 'foo' }]}
List.Item
with accessoryIcon
List.Item
with accessoryIcon
<List.Item title="List item with accessory icon" accessoryIcon={getAccessoryIcon()} />
// becomes
<List.Item title="List item with accessory icon" accessories={[{ icon: getAccessoryIcon() }]}
List.Item
with accessoryTitle
and accessoryIcon
List.Item
with accessoryTitle
and accessoryIcon
<List.Item title="List item with accessory title and accessory icon" accessoryTitle="foo" accessoryIcon={getAccessoryIcon()} />
// becomes
<List.Item title="List item with accessory title and accessory icon" accessories={[{ text: "foo", icon: getAccessoryIcon() }]}
Last updated