Examples
Standard Recording
Record a React Native view with animated content to MP4 video
Use useViewRecorder and RecordingView to capture any React Native view. This example records a gradient countdown animation at 60 fps and encodes it to an MP4 file.
Notes
useViewRecorder()creates a session with a uniquesessionIdRecordingViewwraps the content and links to the session viasessionIdrecorder.record()captures frames one by one, callingonFramebefore each capture so you can update the UI- The native encoder (AVAssetWriter on iOS, MediaCodec on Android) produces an H.264/HEVC MP4
- The returned promise resolves with the output file path when encoding completes