Closed Gamez0 closed 2 years ago
That is weird, since the code is written in typescript and the types can be found within the node_modules
folder
I seem to have found a way to make it work - let me publish a new version with the fix
Now this should properly work on version 0.8.3
of @benjeau/react-native-draw
and 0.2.2
of @benjeau/react-native-draw-extras
🚀
Feel free to re-open this issue if this is not fixed for you
Hi thanks for the new version! It fixed my problem #
I seem to have found a way to make it work - let me publish a new version with the fix
I was wandering if you could share what the problem was and how did you fixed it Thanks in advance
You can see the changes here https://github.com/BenJeau/react-native-draw/commit/719f45e998f48a0753e9c596fa10952b48cce635, basically the package.json
was not pointing to the right location for the types
On what kind of device are you using this library?
Environment
Current Behavior
Expected Behavior
should be able to find a declaration file for module.
Steps To Reproduce
import CanvasRef in Typescript React Native Project with environment given above.
Anything else?
Seems Typescript can't find declaration file in the module. Is't this project meant to be used in typescripts based projects? (I've solved my issue by declaring the interfaces that I need. But definitely there's a better way to solve it)