Skip to content

Incomplete TypeScript definitions - missing component exports #2

@karnoark

Description

@karnoark

The current type definitions in index.d.ts are incomplete, causing TypeScript errors when trying to use components. For example, when trying to import RatingInput:

import { RatingInput } from 'react-native-stock-star-rating';

This produces the error:
Module "react-native-stock-star-rating" has no exported member 'RatingInput'
The current type definitions only include the RatingProps interface but don't declare the actual component exports. I propose adding complete type declarations for all exported components including Rating, RatingInput, FilledStar, and EmptyStar.
I'm happy to submit a pull request with these improvements if this approach sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions