react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

Type for children

Open sokolovdm opened this issue 2 years ago • 0 comments

How to solve problem with type children

export const DocumentationView = React.memo<DocumentationViewProps>(
    ({ testID = 'DocumentationView', style, data }) => {
        const styles = createStyles()
        return (
            <View style={[styles.root, style]} testID={testID}>
                <Markdown style={markdownStyles}>{data}</Markdown>
            </View>
        )
    },
)

TS2559: Type '{ children: any; }' has no properties in common with type 'IntrinsicAttributes & MarkdownProps'.

sokolovdm avatar Jun 06 '23 14:06 sokolovdm