Electron React Boilerplate + Realm Solution?

I’ve been following This tutorial for Electron + Realm and it seems when you implement React or React.Native, Realm doesn’t work. Using Electron React Boilerplate which is a very common library for general use with Electron.

Has anyone been successful building a Realm app using ERB?