Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Typescript Path not in index.d.ts #59

Open
wilau2 opened this issue Mar 17, 2020 · 4 comments · May be fixed by #72
Open

Typescript Path not in index.d.ts #59

wilau2 opened this issue Mar 17, 2020 · 4 comments · May be fixed by #72
Labels
bug Something isn't working

Comments

@wilau2
Copy link

wilau2 commented Mar 17, 2020

Worth tracking this bug in this repo?
DefinitelyTyped/DefinitelyTyped#24830

resulting in typescript error:

Module '"@react-native-community/art"' has no exported member 'Path'.
@Esemesek Esemesek added the bug Something isn't working label Mar 28, 2020
@steadicat steadicat linked a pull request Oct 8, 2020 that will close this issue
5 tasks
@zeh
Copy link

zeh commented Nov 10, 2020

Still an issue for Path and LinearGradient.

@Reisenudong
Copy link

Still an issue for Path

1 similar comment
@josuesalas95
Copy link

Still an issue for Path

@arp55
Copy link

arp55 commented Jul 21, 2021

Found a workaround for this bug. Regarding the type error you can add the ts-ignore above the import. The issue is that Path has not been exported from the package. So go to the index.js file in the art package in node modules and manually export the Path by just adding
MODE.Path = require('./core/path');
along with the other exports. I hope this works. It did work for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants