Browse Source

Update Android and JS code to reflect name change to captureScreen

Fox 6 years ago
parent
commit
21cd028b3b

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java View File

@@ -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 View File

@@ -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);