react-native-paper#DataTable JavaScript Examples

The following examples show how to use react-native-paper#DataTable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js    From real-frontend with GNU General Public License v3.0 5 votes vote down vote up
Membership = ({
  theme,
}) => {
  const styling = styles(theme)
  const { t } = useTranslation()

  return (
    <ScrollView style={styling.root}>
      <DataTable>
        <DataTable.Header>
          <DataTable.Title>Free</DataTable.Title>
          <DataTable.Title>Diamond</DataTable.Title>
          <DataTable.Title>Features</DataTable.Title>
        </DataTable.Header>

        <DataTable.Row>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>REAL Social Media</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>REAL Chat (Coming March 2020)</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>Get Paid $0.11 every view (from other ?members)</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>Access to Follow “Diamond Exclusive” Private Accounts</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>?emblem next to your username</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>Personalize your profile with exclusive Colors, Themes, and Skins</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>Disable the REAL watermark when sharing posts</DataTable.Cell>
        </DataTable.Row>

        <DataTable.Row>
          <DataTable.Cell></DataTable.Cell>
          <DataTable.Cell>✅</DataTable.Cell>
          <DataTable.Cell>REAL Dating (Coming April 2020)</DataTable.Cell>
        </DataTable.Row>
      </DataTable>

      <DefaultButton label={t('Get Diamond In One Tap')} />
    </ScrollView>
  )
}