Q:

react-data-table-component

.... const data = [{ id: 1, title: 'Conan the Barbarian', summary: 'Orphaned boy Conan is enslaved after his village is destroyed...',  year: '1982' } ...];const columns = [  {    name: 'Title',    sortable: true,    cell: row => <div data-tag="allowRowEvents"><div style={{ fontWeight: bold }}>{row.title}</div>{row.summary}</div>,  },  {    name: 'Year',    selector: 'year',    sortable: true,    right: true,  },]; ... class MyComponent extends Component {  render() {    return (      <DataTable        title="Arnold Movies"        columns={columns}        data={data}        selectableRows        selectableRowsComponent={Checkbox}        selectableRowsComponentProps={{ inkDisabled: true }}        sortIcon={<FontIcon>arrow_downward</FontIcon>}        onSelectedRowsChange={handleChange}      />    )  }};
0
import { Icon } from 'react-native-elements'

<Icon
  name='rowing' />

<Icon
  name='g-translate'
  color='#00aced' />

<Icon
  name='sc-telegram'
  type='evilicon'
  color='#517fa4'
/>

<Icon
  reverse
  name='ios-american-football'
  type='ionicon'
  color='#517fa4'
/>

<Icon
  raised
  name='heartbeat'
  type='font-awesome'
  color='#f50'
  onPress={() => console.log('hello')} />
-2

New to Communities?

Join the community