Ver código fonte

make onCapture & onCaptureFailure props optional in flow type

Jack Clark 7 anos atrás
pai
commit
7591cf5c76
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/index.js

+ 2
- 2
src/index.js Ver arquivo

@@ -132,8 +132,8 @@ type Props = {
132 132
   captureMode?: "mount" | "continuous" | "update",
133 133
   children: React.Element<*>,
134 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 139
 function checkCompatibleProps(props: Props) {