Skip to content

matallui/demo-screen-capture

Repository files navigation

Expo Demo: Screen Capture with Managed Workflow

This code demonstrates how to setup screen capture on an Expo app, without having to eject from the managed workflow.

Since screen capture requires significant native changes (mostly on iOS side), this example shows how this can be achieved via Expo Plugins.

State

  • Android: ✅
  • iOS: ✅

For iOS you currently get a red screen instead of the expected hall-of-mirrors. This is due to an issue that has now been reported here.

Build and Run the App

  • Clone this repo and cd into it
  • Install dependencies (this will also build plugins): yarn
  • Generate native projects: npx expo prebuild
  • Run native project: npx expo run:android -d (or ios)

Notes

  • This won't work on a simulator

References