Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0edee7a

Browse files
committed
feat(heuristic-table): support [email protected]
1 parent d9b7e1f commit 0edee7a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/heuristic-table-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"react": "16.13.1",
5656
"react-native": "^0.63.2",
5757
"react-native-builder-bob": "^0.17.1",
58-
"react-native-render-html": "6.0.0-alpha.20",
58+
"react-native-render-html": "6.0.0-alpha.23",
5959
"react-test-renderer": "16.13.1",
6060
"release-it": "^14.3.0",
6161
"typescript": "~4.1.3"
@@ -69,7 +69,7 @@
6969
"peerDependencies": {
7070
"react": ">= 16.8.0",
7171
"react-native": ">= 0.63.0",
72-
"react-native-render-html": ">= 6.0.0-alpha.20 < 6.0.0-alpha.23"
72+
"react-native-render-html": ">= 6.0.0-alpha.23 || 6.x"
7373
},
7474
"author": "Jules Sam. Randolph <[email protected]> (https://github.com/jsamr)",
7575
"homepage": "https://github.com/native-html/plugins/tree/master/packages/heuristic-table-plugin#readme",

packages/heuristic-table-plugin/src/useHtmlTableProps.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { useMemo } from 'react';
22
import {
33
CustomTagRendererProps,
44
TBlock,
5-
TNode
5+
TNode,
6+
useRendererProps
67
} from 'react-native-render-html';
78
import { Settings, HTMLTableProps } from './shared-types';
89
import TableLayout from './TableLayout';
@@ -38,9 +39,7 @@ export default function useHtmlTableProps(
3839
overrideContentWidth?: number;
3940
} = {}
4041
): HTMLTableProps {
41-
const {
42-
renderersProps: { table }
43-
} = sharedProps;
42+
const table = useRendererProps('table');
4443
const forceStretch = table?.forceStretch ?? false;
4544
const contentWidth =
4645
typeof options.overrideContentWidth === 'number'

0 commit comments

Comments
 (0)