How to trigger the Google Play login from React Native IAP

Is it possible to trigger the Google account sign-in dialogue from within a React Native app?

I have found while using IAPHub that you cannot even list products for sale if the user is not signed in on their Android device – because it seems to need to talk to the Play store with credentials.

Perhaps it’s an edge case, as most people would be always signed into their Google account if they use an Android device? But I felt like I wanted to be able to provide a nicer UX to show the login dialogue.

I’ve looked in the IAPHub docs and the repo docs the underlying https://github.com/dooboolab/react-native-iap but there doesn’t seem to be a direct interface to test if the user is logged in nor force a login. This makes me wonder if I’m looking in the wrong place.

I can see there’s a URL method like from https://stackoverflow.com/a/11753070/209288 but I was looking more for an in-app API.