Search code examples
react-nativehuawei-mobile-serviceshuawei-developershuawei-push-notification

Could not find a declaration file for module '@hmscore/react-native-hms-push'


I'm having problems with linking push kit library.

I'm programming in react-native with visual studio code, library '@hmscore/react-native-hms-push' not seem to be imported correctly, the error is 'Could not find a declaration file for module '@hmscore/react-native-hms-push'.

I'm using 5.3.0-301 version.

Checking maps-kit and push-kit seems different si index.ts, is missing in the src directory of push-kit

i have used this guide:

https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/integraternmodule-0000001050157791

have i missed anything?

Thanks


Solution

  • The solution is:

    yarn add @types/hmscore__react-native-hms-push
    

    or equivalent in npm.