Selaa lähdekoodia

Update Android and JS code to reflect name change to captureScreen

Fox 7 vuotta sitten
vanhempi
commit
21cd028b3b

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java Näytä tiedosto

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

+ 1
- 1
src/index.js Näytä tiedosto

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