Skip to content

Marker types does not added to Path Props #1208

@SaeedZhiany

Description

@SaeedZhiany

Bug

I'm getting typing error when using Marker props (like markerMid, markerEnd, ...) in Path component.

also IDEA is importing Marker component from 'react-native-svg/lib/typescript' directory, is it correct? Why it is not import from react-native-svg just like the other components?

Environment info

"react": "16.8.3",
"react-native": "0.59.10",

React native info output:

TS2322: Type '{ key: string; d: string; stroke: string; fill: string; strokeWidth: number; markerMid: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<PathProps, any, any>> & Readonly<PathProps> & Readonly<{ children?: ReactNode; }>'.
  Property 'markerMid' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<PathProps, any, any>> & Readonly<PathProps> & Readonly<{ children?: ReactNode; }>'.

Library version: 9.13.3

Steps To Reproduce

Reproducible sample code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions