New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@native-html/heuristic-table-plugin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@native-html/heuristic-table-plugin

🔠 A 100% native component using heuristics to render tables in react-native-render-html

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
269
decreased by-62.59%
Maintainers
1
Weekly downloads
 
Created
Source

:warning: This plugin is in active development and its API might change without notice. As long as it is unstable, it will be released with 0.X version scheme, as per the semver standard.

@native-html/heuristic-table-plugin

npm semver codecov CI DL/month Discord

🔠 A 100% native component using heuristics to render tables in react-native-render-html.


npm add --save @native-html/heuristic-table-plugin
yarn add @native-html/heuristic-table-plugin

Compat Table

react-native-render-html@native-html/heuristic-table-plugin
< 6.0.0-
≥ 6.0.06.x (documentation)

Minimal working example

import React from 'react';
import { ScrollView } from 'react-native';
import HTML from 'react-native-render-html';
import tableRenderers from '@native-html/heuristic-table-plugin';

const html = `
<table>
  <tr>
    <th>Entry Header 1</th>
    <th>Entry Header 2</th>
  </tr>
  <tr>
    <td>Entry First Line 1</td>
    <td>Entry First Line 2</td>
  </tr>
</table>
`;

const htmlProps = {
  WebView,
  renderers: {
    ...tableRenderers
  },
  renderersProps: {
    table: {
      // Put the table config here
    }
  }
};

export const Example = () => (
  <ScrollView>
    <HTML source={{ html }} {...htmlProps} />
  </ScrollView>
);

Customizing

To change the layout of cells and other options, you can pass a config object to the renderersProps.table prop of RenderHTML component.

See the documentation for this object here: HeuristicTablePluginConfig

Keywords

FAQs

Package last updated on 18 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc