.createChannel is not a function

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 à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 às 19 06 53
Captura de Tela 2020-10-27 às 19 07 09

1 possible answer(s) on “.createChannel is not a function