npm.io
1.2.1 • Published 5 years ago

@beapp/react-native-screen-recorder

Licence
MIT
Version
1.2.1
Deps
0
Size
1.7 MB
Vulns
0
Weekly
0
Stars
3

react-native-record-screen

A screen record with app audio + mic module for React Native.

  • Support iOS >= 11.0

Installation

npm install @beapp/react-native-screen-recorder

pod install

cd ios && pod install && cd ../

Usage

Recording full screen
import RecordScreen from '@beapp/react-native-screen-recorder'

// recording start
RecordScreen.startRecording().catch((error) => console.error(error))

// recording stop
const res = await RecordScreen.stopRecording().catch((error) =>
  console.warn(error)
)

if (res) {
  const url = res.result.outputURL
}
Clean Sandbox
RecordScreen.clean();

License

MIT