Accordion-Collapse-react-native
Accordion-Collapse-react-native copied to clipboard
warning import
Could not find a declaration file for module 'accordion-collapse-react-native'. '/home/rodrigo/neofontes/mobile/trunk/neocorp/node_modules/accordion-collapse-react-native/build/index.js' implicitly has an 'any' type.
Try npm install @types/accordion-collapse-react-native
if it exists or add a new declaration (.d.ts) file containing declare module 'accordion-collapse-react-native';
ts(7016)
Same issue here
I have the same issue, is this not being addressed?
I fixed this issue by creating a "index.d.ts." file inside the "accordion-collapse-react-native" folder in the project's 'node_module" folder. The file should have the following line in it:
declare module 'accordion-collapse-react-native';
Just created a pull request that generates the index.d.ts file to fix that issues. Would be nice if you find time to take a look at it @marouanekadiri thx for your nice work!
this issue still exists. What a shame, I liked this package but I can't use it since the project I'm working on is TypeScript, and this small issue would fail the lint pipeline.
@oreyes1991 Just add this declare module 'accordion-collapse-react-native';
into a .d.ts
file in the root folder of your project and the pipeline will not break anymore.
@marouanekadiri Creating the .d.ts in the root still presents and issue and causes the build pipe line to break. Would declaring the components in the package be something in the works? Thank you