react-native-bluetooth-escpos-printer
react-native-bluetooth-escpos-printer copied to clipboard
Could not find a declaration file for module 'react-native-bluetooth-escpos-printer'
Hello everyone,
I'm developing my first react native app for Android in Visual Studio Code with TypeScript. I followed the installation steps, but when I refer the module in my tsx file I receive the following message:
"Could not find a declaration file for module 'react-native-bluetooth-escpos-printer'. '[PROJECT-NAME]/node_modules/react-native-bluetooth-escpos-printer/index.js' implicitly has an 'any' type."
Thanks in advance!
I have the same problem, can anyone fix it?
- Create .d.ts file (eg. type.d.ts)
- add this line : declare module 'react-native-bluetooth-escpos-printer';
I think you are using expo app for run the app you can try with android studio because for this package "Native-Modules" Required , if you use the expo it will not recognize so you can try in android studio