Skip to content

Typescript error  #706

Open
Open

Description

@Lizaveta01

Segment-control v2.4.1
RN v0.71.2

Error Message:
No overload matches this call.
Overload 2 of 2, '(props: SegmentedControlProps, context: any): SegmentedControl', gave the following error.
Type '{ fontFamily: Fonts; fontSize: number; fontWeight: number; }' is not assignable to type 'FontStyle'.
Overload 2 of 2, '(props: SegmentedControlProps, context: any): SegmentedControl', gave the following error.
Type '{ fontFamily: Fonts; fontSize: number; fontWeight: number; }' is not assignable to type 'FontStyle'.
Overload 2 of 2, '(props: SegmentedControlProps, context: any): SegmentedControl', gave the following error.
Type '(val: ProposalType) => void' is not assignable to type '(value: string) => void'.ts(2769)
index.d.ts(104, 3): The expected type comes from property 'fontStyle' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'
index.d.ts(108, 3): The expected type comes from property 'activeFontStyle' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'

But on app all work as expected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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