react-native-image-slider-box icon indicating copy to clipboard operation
react-native-image-slider-box copied to clipboard

Add TypeScript Support

Open therealkh opened this issue 3 years ago • 2 comments

I am facing this error when importing library on my code.

Could not find a declaration file for module 'react-native-image-slider-box'. '.../node_modules/react-native-image-slider-box/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-native-image-slider-box if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-image-slider-box';

therealkh avatar Nov 24 '21 12:11 therealkh

I'm having the same issue, is their any workaround?

manutheblacker avatar Mar 04 '22 20:03 manutheblacker

I'm having the same issue, is their any workaround? CREATE A FOLDER name types and inside that create another folder classnames . Iinside the classnames create a file name index.ts After creating inside the index.ts file type : declare module 'react-native-image-slider-box';

** This process will allow the react-native-image-slider-box package on any types which will run as a plain javascript which will make our jobs done **

sagar17-create avatar Mar 05 '22 13:03 sagar17-create