Closed ovezovv closed 8 months ago
Unfortunately this project is no longer maintained. The last alpha release you mentioned is two years old and there was no further commit in this repo...
See my answer here https://github.com/oblador/react-native-collapsible/issues/450#issuecomment-1328800327 for a temporary workaround.
See also https://github.com/iamacup/react-native-markdown-display/issues/158
thank you @pwfcurry , below is the file I added and its now working
// md-children-fix.d.ts
import React from 'react';
declare module 'react-native-markdown-display' {
// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#merging-interfaces
interface MarkdownProps {
children?: React.ReactNode;
}
}
Adding this:
to the
node_modules/react-native-markdown-display/src/index.d.ts
fixed type error, working variant is below:Please, consider this I am using version 7.0.0-alpha.2