Skip to content

Commit 5452fa6

Browse files
committed
fix: wrong nodeIndex for children of ul and ol tags
fix #463
1 parent 85c679b commit 5452fa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HTMLRenderers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function ul(htmlAttribs, children, convertedCSSStyles, passProps = {}) {
126126
convertedCSSStyles,
127127
{
128128
...passProps,
129-
index,
129+
nodeIndex: index,
130130
},
131131
];
132132

types/react-native-render-html/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for react-native-render-html 4.2
1+
// Type definitions for react-native-render-html 5.1
22
// Project: https://github.com/meliorence/react-native-render-html
33
// Definitions by: Jules Randolph <https://github.com/jsamr>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

0 commit comments

Comments
 (0)