Describe the bug
When using the latest version in a Typescript project, Typescript complains no types are found:
file.tsx:9:37 - error TS7016: Could not find a declaration file for module 'rn-emoji-keyboard'. node_modules/rn-emoji-keyboard/lib/commonjs/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/rn-emoji-keyboard` if it exists or add a new declaration (.d.ts) file containing `declare module 'rn-emoji-keyboard';`
To Reproduce
Use the library in a Typescript project, Typescript will complain no types can be found
Expected behavior
Types are working
Source of the issue
The index.d.ts file path defined for the types key in package.json is lib/typescript/index.d.ts, but the real file in the NPM package is node_modules/rn-emoji-keyboard/lib/typescript/src/index.d.ts (note the additional src/)
Describe the bug When using the latest version in a Typescript project, Typescript complains no types are found:
To Reproduce Use the library in a Typescript project, Typescript will complain no types can be found
Expected behavior Types are working
Source of the issue The
index.d.ts
file path defined for thetypes
key inpackage.json
islib/typescript/index.d.ts
, but the real file in the NPM package isnode_modules/rn-emoji-keyboard/lib/typescript/src/index.d.ts
(note the additionalsrc/
)