0.1.8 • Published 6 months ago

expo-screen-recorder v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

expo-screen-recorder

Programmatically start and stop screen recording. iOS-only for now. If you get a build error because it can't find ReplayKit, check my GitHub for the expo-record-screen-config-plugin or something similar-sounding – it adds ReplayKit to the build.

Installation

yarn add expo-screen-recorder

Usage

import * as ScreenRecorder from "expo-screen-recorder"

// anywhere in your code
const micEnabled = false
await ScreenRecorder.startRecording(micEnabled) // this includes the permission request, and no it can't be separated unfortunately, ReplayKit doesn't let you (as far as I know)
                                      // if you want to separate it, create a function that starts and stops screen recording right after
                                      // also, once permissions accepted, they wont be asked for again ONLY for that session, or if it's been longer than 8minutes lol
const outputUrl = await ScreenRecorder.stopRecording() // you can also provide a file name: stopRecording(fileName)

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

0.1.8

6 months ago

0.1.7

8 months ago

0.1.4

11 months ago

0.1.5

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

2 years ago

0.1.0

2 years ago