Implement Azure Notification Hub with React and Capacitor

I am using capacitor 2.0.1 and React. I found some documentation on azure notification hub implementation in Ionic-4, but i have tried to install cordova-azure-notification-hubs but the android project showing some error.

Is there any possible ways to register device on Azure notification hub using React and capacitor?