
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-frame-capture
Advanced tools
Reliable screen capture for React Native Android. Capture frames at intervals with customizable overlays and storage options.
Reliable screen capture for React Native Android. Capture frames at intervals or when screen content changes, with customizable overlays and storage options.
React Native Frame Capture uses Android's MediaProjection API to capture screen content at regular intervals. Here's the flow:
Key Components:
Why Foreground Service? Android kills background processes aggressively. The foreground service (with notification) ensures reliable capture even when your app isn't visible.
npm install react-native-frame-capture
or
yarn add react-native-frame-capture
Add the config plugin to your app.json or app.config.js:
{
"expo": {
"plugins": ["react-native-frame-capture"]
}
}
Then rebuild your app:
npx expo prebuild
npx expo run:android
import * as FrameCapture from 'react-native-frame-capture';
import { Platform, PermissionsAndroid } from 'react-native';
// 1. Request notification permission (Android 13+)
if (Platform.OS === 'android' && Platform.Version >= 33) {
await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS
);
}
// 2. Request screen capture permission
const permissionStatus = await FrameCapture.requestPermission();
if (permissionStatus === FrameCapture.PermissionStatus.GRANTED) {
// 3. Start capturing
await FrameCapture.startCapture({
capture: {
interval: 1000, // Capture every second
},
image: {
quality: 80,
format: 'jpeg',
},
storage: {
saveFrames: true,
location: 'private',
},
});
// 4. Listen for captured frames
const subscription = FrameCapture.addListener(
FrameCapture.CaptureEventType.FRAME_CAPTURED,
(event) => {
console.log('Frame captured:', event.filePath);
}
);
// 5. Stop capturing when done
await FrameCapture.stopCapture();
subscription.remove();
}
| Platform | Supported | Version |
|---|---|---|
| Android | ✅ Yes | 5.0+ |
| iOS | ❌ No | N/A |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT © Nasyx Rakeeb
Made with ❤️ using create-react-native-library
FAQs
Reliable screen capture for React Native Android. Capture frames at intervals with customizable overlays and storage options.
We found that react-native-frame-capture demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.