Skip to content

Commit 21cd028

Browse files
author
Fox
committed
Update Android and JS code to reflect name change to captureScreen
1 parent b36a997 commit 21cd028

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void captureRef(int tag, ReadableMap options, Promise promise) {
9393
}
9494

9595
@ReactMethod
96-
public void captureScreenshot(ReadableMap options, Promise promise) {
96+
public void captureScreen(ReadableMap options, Promise promise) {
9797
captureRef(-1, options, promise);
9898
}
9999

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function releaseCapture(uri: string): void {
114114
}
115115
}
116116

117-
export function captureScreenshot(
117+
export function captureScreen(
118118
optionsObject?: Options
119119
): Promise<string> {
120120
const { options, errors } = validateOptions(optionsObject);

0 commit comments

Comments
 (0)