React-native-push-notification: .createChannel is not a function

Created on 28 Oct 2020  路  3Comments  路  Source: zo0r/react-native-push-notification

Hi,

I have the latest version installed "react-native-push-notification": "^6.1.2" and "@react-native-community/push-notification-ios": "^1.7.1", but when trying to create a channel as written in the README, I always get the error:

Captura de Tela 2020-10-27 a虁s 19 08 44

I ran npm install multiple times, rebuild the app, gradle synced, cleaned the project.

When I do a console log of the PushNotification object the createChannel method is not there.

Captura de Tela 2020-10-27 a虁s 19 06 53
Captura de Tela 2020-10-27 a虁s 19 07 09

Most helpful comment

cleared the project cache still facing this issue

All 3 comments

Hi,
This definitely looks like a cache issue.
Clean you project again
Regards

Indeed it was, closing the issue.

cleared the project cache still facing this issue

Was this page helpful?
0 / 5 - 0 ratings