Skip to content

mbalex99/realm-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron-Compile + RealmJS

  1. Clone this repo
  2. run npm install. It will probably rebuild realm-js which could take a while. Luckily this is only done once.
  3. Start the project by npm run start

This uses electron-compile to minimize the amount of

Important TypeScript Usage

This project comes with support for TypeScript but electron-compile has a bug that does not allow for default exports at the moment.

So this is fine:

export class App extends React.Component<{}, {}> {
}

This is not fine and will cause a runtime error:

export default class App extends React.Component<{}, {}> {
}

I have noted this as an issue and created a pull request with electron-compilers which is a dependency.

Caveats

This works on Mac, Linux, and Windows but Realm Mobile Platform's syncing capabilities only work on Mac at the moment.

About

Electron-Compile Boilerplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published