Skip to content

Type Definition Error FixΒ #111

@dev-ahmed

Description

@dev-ahmed

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions