Use AccountKit with expo without detaching it

I am the new member of the month baby, and I had to post this.

So It breaks my heart to hear Accountkit didn’t work natively with expo and unless you detach it.
Fear not there is a way.

I basically created a webpage which hosts a web version of accountkit. Host it on your server.!

https://gist.github.com/xpsdeset/72a0ca5b774dfdbc8f60d45dbf379967

The live preview of that gist can be seen here
https://rawgit.com/xpsdeset/72a0ca5b774dfdbc8f60d45dbf379967/raw/5e538c496e3658b6618029aa8d4c29fc087f55f5/AccountKit.html

And a working version of accountkit with expo can be seen here
https://snack.expo.io/HJFK20QwG

Make sure to whitelist your host/domain as seen in the screenshot. I assume this is the same way how some payment gateways work via webview but act as a part of your application.

Did I mention I love expo.

3 Likes

@xbsdeset This is awesome. Thanks a ton for sharing this with the community. Absolutely love to see when developers help provide solutions to other devs! :+1:t4:

Cheers,

Adam

Dear @xbsdeset

This is wonderful and great and …
You’ve contributed so much to mobile develop with expo as well as to me.
.:+1::+1::+1::+1::+1::+1::+1::+1::+1:

Thanks and Sorry to greet so late.

Sincerely.

Yury

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.