Skip to content

Commit

Permalink
fix: apply changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki committed Aug 12, 2024
1 parent 79dfe34 commit 09578bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Camera.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Camera = React.forwardRef<CameraApi, CameraProps>((props, ref) => {

React.useImperativeHandle(ref, () => ({
capture: async (options = {}) => {
return await NativeCameraKitModule.capture(options, findNodeHandle(nativeRef.current ?? null) ?? undefined);
return await NativeCameraKitModule.capture(options, findNodeHandle(nativeRef.current) ?? undefined);
},
requestDeviceCameraAuthorization: () => {
throw new Error('Not implemented');
Expand Down
2 changes: 1 addition & 1 deletion src/Camera.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Camera = React.forwardRef<CameraApi, CameraProps>((props, ref) => {

React.useImperativeHandle(ref, () => ({
capture: async () => {
return await NativeCameraKitModule.capture({}, findNodeHandle(nativeRef.current ?? null) ?? undefined);
return await NativeCameraKitModule.capture({}, findNodeHandle(nativeRef.current) ?? undefined);
},
requestDeviceCameraAuthorization: async () => {
return await NativeCameraKitModule.checkDeviceCameraAuthorizationStatus();
Expand Down

0 comments on commit 09578bd

Please sign in to comment.