Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type for children #174

Open
sokolovdm opened this issue Jun 6, 2023 · 0 comments
Open

Type for children #174

sokolovdm opened this issue Jun 6, 2023 · 0 comments

Comments

@sokolovdm
Copy link

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant