Skip to content

Latest commit

 

History

History
executable file
·
127 lines (120 loc) · 4.07 KB

ListIcon.md

File metadata and controls

executable file
·
127 lines (120 loc) · 4.07 KB

list-icon-headref

List Icon

Lists can have icons assigned either to the left and/or right side of each list item. Along with icons, list item can also have badges assigned. To have note kind of text for list item, include note prop with Text component of ListItem.

Preview ios list-icon-headref Preview android list-icon-headref

Syntax

{% codetabs name="React Native", type="js" -%} import React, { Component } from 'react'; import { Container, Header, Content, Button, ListItem, Text, Icon, Left, Body, Right, Switch } from 'native-base'; export default class ListIconExample extends Component { render() { return (

{% raw %}<Button style={{ backgroundColor: "#FF9501" }}>{% endraw %} Airplane Mode {% raw %}<Button style={{ backgroundColor: "#007AFF" }}>{% endraw %} Wi-Fi GeekyAnts {% raw %}<Button style={{ backgroundColor: "#007AFF" }}>{% endraw %} Bluetooth On ); } } {%- language name="Vue Native", type="vue" -%} Airplane Mode Wi-Fi GeekyAnts Bluetooth On {%- endcodetabs %}


Note: Switch included in above example is from React Native.