react-native-pinch icon indicating copy to clipboard operation
react-native-pinch copied to clipboard

How to use library in typescript?

Open SaeedZhiany opened this issue 6 years ago • 0 comments

I want to use this library in a typescript file (.tsx) and when I import it, compiler gives me error below

TS7016: Could not find a declaration file for module 'react-native-pinch'. 'C:/Users/SAEED/WebstormProjects/reactNative/node_modules/react-native-pinch/index.js' implicitly has an 'any' type.   Try npm install @types/react-native-pinch if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-pinch';``

How can I resolve problem?

SaeedZhiany avatar Aug 05 '18 06:08 SaeedZhiany