Browse Source

Merge pull request #119 from jackdclark/master

Make onCapture & onCaptureFailure props optional in flow type
Gaëtan Renaudeau 7 years ago
parent
commit
f6a5dc95f3
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/index.js

+ 2
- 2
src/index.js View File

@@ -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) {