Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions types/react-native-htmlview/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentType, ReactNode } from "react";
import { ComponentClass, ComponentType, ReactInstance, ReactNode } from "react";
import { ImageStyle, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from "react-native";

type Nullish = null | undefined;
Expand Down Expand Up @@ -114,5 +114,9 @@ export type HTMLViewNodeRenderer = (
parent: HTMLViewNode | Nullish,
) => ReactNode;

declare const HTMLView: ComponentType<HTMLViewProps>;
declare const HTMLView: ComponentClass<HTMLViewProps> & {
refs?: {
[key: string]: ReactInstance;
};
};
export default HTMLView;
4 changes: 2 additions & 2 deletions types/react-native-htmlview/react-native-htmlview-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class Simple extends React.Component {

const renderNode: HTMLViewProps["renderNode"] = (
node,
index,
siblings,
_index,
_siblings,
parent,
defaultRenderer,
) => {
Expand Down