ソースを参照

Update Android and JS code to reflect name change to captureScreen

Fox 8 年 前
コミット
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
     }
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 ファイルの表示

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