Skip to content

Commit 4111cb6

Browse files
sgnyMoOx
authored andcommitted
ImagePickerIOS: correct success callback for methods (#543)
1 parent 4b681e6 commit 4111cb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎reason-react-native/src/apis/ImagePickerIOS.re‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ external selectDialogConfig:
2121
external openCameraDialog:
2222
(
2323
~config: cameraDialogConfig,
24-
~onSuccess: imageUri => unit,
24+
~onSuccess: (imageUri, ~height: float, ~width: float, unit) => unit,
2525
~onError: 'error => unit
2626
) =>
2727
unit =
@@ -31,7 +31,7 @@ external openCameraDialog:
3131
external openSelectDialog:
3232
(
3333
~config: selectDialogConfig,
34-
~onSuccess: imageUri => unit,
34+
~onSuccess: (imageUri, ~height: float, ~width: float, unit) => unit,
3535
~onError: 'error => unit
3636
) =>
3737
unit =

0 commit comments

Comments
 (0)