浏览代码

Update Android and JS code to reflect name change to captureScreen

Fox 7 年前
父节点
当前提交
21cd028b3b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java
  2. 1
    1
      src/index.js

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java 查看文件

@@ -93,7 +93,7 @@ public class RNViewShotModule extends ReactContextBaseJavaModule {
93 93
     }
94 94
 
95 95
     @ReactMethod
96
-    public void captureScreenshot(ReadableMap options, Promise promise) {
96
+    public void captureScreen(ReadableMap options, Promise promise) {
97 97
         captureRef(-1, options, promise);
98 98
     }
99 99
 

+ 1
- 1
src/index.js 查看文件

@@ -114,7 +114,7 @@ export function releaseCapture(uri: string): void {
114 114
   }
115 115
 }
116 116
 
117
-export function captureScreenshot(
117
+export function captureScreen(
118 118
   optionsObject?: Options
119 119
 ): Promise<string> {
120 120
   const { options, errors } = validateOptions(optionsObject);