瀏覽代碼

Merge pull request #219 from Eyesonly88/master

Fixes compile error when getting packaged by metro
Gaëtan Renaudeau 5 年之前
父節點
當前提交
ec23260a9e
No account linked to committer's email address
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/index.js

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

@@ -177,7 +177,7 @@ export default class ViewShot extends Component<Props> {
177 177
   lastCapturedURI: ?string;
178 178
 
179 179
   resolveFirstLayout: (layout: Object) => void;
180
-  firstLayoutPromise = new Promise<void>(resolve => {
180
+  firstLayoutPromise = new Promise(resolve => {
181 181
     this.resolveFirstLayout = resolve;
182 182
   });
183 183