Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module. #65

Open
binishmanandhar23 opened this issue May 11, 2020 · 1 comment
Open

Could not find a declaration file for module. #65

binishmanandhar23 opened this issue May 11, 2020 · 1 comment

Comments

@binishmanandhar23
Copy link

binishmanandhar23 commented May 11, 2020

Could not find a declaration file for module 'react-native-cardview'. '/Users/bishes/Desktop/Workspace/VantageBit/pasls/app/node_modules/react-native-cardview/index.js' implicitly has an 'any' type.
Try npm install @types/react-native-cardview if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-cardview';ts(7016)

I was trying to use this library but after installation when I was importing the module I stumbled upon the above issue and I've been trying to solve it for the past couple of days yet I cannot find the solution. Please do have a look and help me resolve this.

@huaiguoguo
Copy link

huaiguoguo commented May 15, 2020

define file named typing/index.d.ts in your project,
and write

declare module 'react-native-cardview'{
  //paste the contents of the official document index.d.ts here
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants