The "types" key in package.json of the release on npm points to "lib/typescript/src/index.d.ts".
This causes an error in VSCode: Could not find a declaration file for module 'agora-react-native-chat'.
Removing src from the path (changing it to "lib/typescript/index.d.ts") or moving the declaration files to the correct path should fix this issue.
The
"types"
key inpackage.json
of the release on npm points to"lib/typescript/src/index.d.ts"
. This causes an error in VSCode:Could not find a declaration file for module 'agora-react-native-chat'.
Removing
src
from the path (changing it to"lib/typescript/index.d.ts"
) or moving the declaration files to the correct path should fix this issue.