Closed dogankablan closed 1 year ago
Hey, I'm not a maintainer here but was following the repo for a while and just have seen your question.
It means that there is no typescript support for the package. As the error message says you could create a declaration file where you declare the module.
If you declare a type or a module inside a d.ts
file will be available in your entire project.
So, for example you could create a file named: react-native-sms-user-consent.d.ts
in your type folder or where ever you feel it comfortable and add the following content:
declare module '@eabdullazyanov/react-native-sms-user-consent';
The error message should be gone.
Greetings. I am installing the package with yarn. However, I am facing such a problem while importing.
Could not find a declaration file for module '@eabdullazyanov/react-native-sms-user-consent'. '/Users/dogan.kablan/Documents/hangikredi.mobile.rn/node_modules/@eabdullazyanov/react-native-sms-user-consent/index.js' implicitly has an 'any' type. Try
npm i --save-dev @types/eabdullazyanov__react-native-sms-user-consent
if it exists or add a new declaration (.d.ts) file containingdeclare module '@eabdullazyanov/react-native-sms-user-consent';