Skip to content

Commit c0f2918

Browse files
committed
fix: add missing CHANGE_DETECTED event listener
- Updated events.ts to support CHANGE_DETECTED event - Bumped version to v1.1.1
1 parent ae1e3d0 commit c0f2918

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ node_modules/
5555
npm-debug.log
5656
yarn-debug.log
5757
yarn-error.log
58+
.npmrc
5859

5960
# BUCK
6061
buck-out/

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2025-02-09
9+
10+
### Fixed
11+
12+
- Added missing event listener registration for `CHANGE_DETECTED` event in the TypeScript layer.
13+
14+
---
15+
816
## [1.1.0] - 2025-02-09
917

1018
### Added
@@ -175,5 +183,6 @@ await FrameCapture.startCapture({
175183

176184
This is the initial stable release of React Native Frame Capture. The library provides production-ready screen capture functionality with a focus on reliability, performance, and developer experience.
177185

186+
[1.1.1]: https://github.com/nasyx-rakeeb/react-native-frame-capture/releases/tag/v1.1.1
178187
[1.1.0]: https://github.com/nasyx-rakeeb/react-native-frame-capture/releases/tag/v1.1.0
179188
[1.0.0]: https://github.com/nasyx-rakeeb/react-native-frame-capture/releases/tag/v1.0.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-frame-capture",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Reliable screen capture for React Native Android. Capture frames at intervals with customizable overlays and storage options.",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",

src/events.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export function addListener(
4646
return NativeFrameCapture.onCaptureResume(callback as any);
4747
case CaptureEventType.OVERLAY_ERROR:
4848
return NativeFrameCapture.onOverlayError(callback as any);
49+
case CaptureEventType.CHANGE_DETECTED:
50+
return NativeFrameCapture.onChangeDetected(callback as any);
4951
default:
5052
throw new Error(`Unknown event type: ${event}`);
5153
}

0 commit comments

Comments
 (0)