
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-screen-mic-recorder
Advanced tools
Screen recorder with optional mic recording, useful for video overlay without processing when recording react-native-camera or expo-camera
A screen and microphone record module for React Native.
This is a cusomized and improved fork of react-native-record-screen
Support iOS >= 11.0 (only on real device)
Support Android
yarn add react-native-screen-mic-recorder
add Usage Description in info.plist
<key>NSCameraUsageDescription</key>
<string>Please allow use of camera</string>
<key>NSMicrophoneUsageDescription</key>
<string>Please allow use of microphone</string>
Install pods from the ios folder
npx pod-install
Add permissions in AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
See the example application for full Android and iOS Example
import ScreenRecorder from 'react-native-screen-mic-recorder'
// This options can be passed to startRecording
const options = {
mic: true | false // defaults to true
width: ? // Defaults to Dimensions.get('window').width, ignored on Android
height: ? // Defaults to Dimensions.get('window').height, ignored on Android
androidBannerStopRecordingHandler: fn() // Android Only: Callback function to handle stop recording from notification baner
}
// Start Recording
const recordingStatus = await ScreenRecorder.startRecording(options).catch((error) => {
console.warn(error) // handle native error
})
if (recordingStatus === 'started') ... // Recording has started
if (recordingStatus === 'userDeniedPermission') Alert.alert('Plesae grant permission in order to record screen')
// Stop Recording
const uri = await ScreenRecorder.stopRecording().catch((error) =>
console.warn(error) // handle native error
)
// uri is the path to the recorded video
const androidBannerStopRecordingHandler = (uri) => {
console.log('video uri, recording stopped from Android notification banner', uri)
}
The recorded video is saved inside the App Sandbox and can be added to the camera roll with appropriate code. Once done you can delete the recorded video with
ScreenRecorder.deleteRecording(uri)
MIT
FAQs
Screen recorder with optional mic recording, useful for video overlay without processing when recording react-native-camera or expo-camera
The npm package react-native-screen-mic-recorder receives a total of 53 weekly downloads. As such, react-native-screen-mic-recorder popularity was classified as not popular.
We found that react-native-screen-mic-recorder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.