Skip to content

Type Definition Error Fix #111

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

Open
dev-ahmed opened this issue Dec 19, 2024 · 0 comments
Open

Type Definition Error Fix #111

dev-ahmed opened this issue Dec 19, 2024 · 0 comments

Comments

@dev-ahmed
Copy link

Description

The library currently has TypeScript errors due to incompatible React type definitions. Adding a specific version of @types/react resolves these issues.
Proposed Solution
Add the following resolution to package.json:
jsonCopy"resolutions": {
"@types/react": "17.0.43"
}

Why this version?

Version 17.0.43 of @types/react is compatible with React Native projects and resolves type definition conflicts, particularly with JSX namespace issues.
Testing Done

Installed version 17.0.43 of @types/react
Verified TypeScript compilation succeeds
Confirmed no breaking changes to existing functionality

Would you like me to suggest additional details or context to include in the issue?

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