浏览代码

make onCapture & onCaptureFailure props optional in flow type

Jack Clark 8 年前
父节点
当前提交
7591cf5c76
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/index.js

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

132
   captureMode?: "mount" | "continuous" | "update",
132
   captureMode?: "mount" | "continuous" | "update",
133
   children: React.Element<*>,
133
   children: React.Element<*>,
134
   onLayout?: (e: *) => void,
134
   onLayout?: (e: *) => void,
135
-  onCapture: (uri: string) => void,
136
-  onCaptureFailure: (e: Error) => void
135
+  onCapture?: (uri: string) => void,
136
+  onCaptureFailure?: (e: Error) => void
137
 };
137
 };
138
 
138
 
139
 function checkCompatibleProps(props: Props) {
139
 function checkCompatibleProps(props: Props) {