File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
packages/heuristic-table-plugin Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 55
55
"react" : " 16.13.1" ,
56
56
"react-native" : " ^0.63.2" ,
57
57
"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 " ,
59
59
"react-test-renderer" : " 16.13.1" ,
60
60
"release-it" : " ^14.3.0" ,
61
61
"typescript" : " ~4.1.3"
69
69
"peerDependencies" : {
70
70
"react" : " >= 16.8.0" ,
71
71
"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 "
73
73
},
74
74
"author" :
" Jules Sam. Randolph <[email protected] > (https://github.com/jsamr)" ,
75
75
"homepage" : " https://github.com/native-html/plugins/tree/master/packages/heuristic-table-plugin#readme" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import { useMemo } from 'react';
2
2
import {
3
3
CustomTagRendererProps ,
4
4
TBlock ,
5
- TNode
5
+ TNode ,
6
+ useRendererProps
6
7
} from 'react-native-render-html' ;
7
8
import { Settings , HTMLTableProps } from './shared-types' ;
8
9
import TableLayout from './TableLayout' ;
@@ -38,9 +39,7 @@ export default function useHtmlTableProps(
38
39
overrideContentWidth ?: number ;
39
40
} = { }
40
41
) : HTMLTableProps {
41
- const {
42
- renderersProps : { table }
43
- } = sharedProps ;
42
+ const table = useRendererProps ( 'table' ) ;
44
43
const forceStretch = table ?. forceStretch ?? false ;
45
44
const contentWidth =
46
45
typeof options . overrideContentWidth === 'number'
You can’t perform that action at this time.
0 commit comments