EAS Simulator embed example

EAS Simulator embed example

Two ways to show an EAS Simulator session on your own page. Both need the preview host URL and the session token. Get them from eas simulator:start --json or from the remoteConfig of the session in the Expo API.

  1. Embed the preview page in an iframe. Start the session with --frame-ancestor set to the origin of this page.
  2. Render the screen with @expo/hub-client. Start the session with --cors-origin set to the origin of this page.

Origin of this page: …