We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2f044c + e8e98df commit 192b0ebCopy full SHA for 192b0eb
src/index.d.ts
@@ -1,7 +1,7 @@
1
// tslint:disable:max-classes-per-file
2
import MarkdownIt from 'markdown-it';
3
import Token from 'markdown-it/lib/token';
4
-import {ComponentType, ReactNode} from 'react';
+import {ComponentType, PropsWithChildren, ReactNode} from 'react';
5
import {StyleSheet, View} from 'react-native';
6
7
export function getUniqueID(): string;
@@ -91,7 +91,7 @@ export interface MarkdownProps {
91
onLinkPress?: (url: string) => boolean;
92
}
93
94
-type MarkdownStatic = ComponentType<MarkdownProps>;
+type MarkdownStatic = ComponentType<PropsWithChildren<MarkdownProps>>;
95
export const Markdown: MarkdownStatic;
96
export type Markdown = MarkdownStatic;
97
export {MarkdownIt};
0 commit comments