Skip to content

Commit

Permalink
Type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlac committed May 15, 2024
1 parent 79ccbb0 commit 2995514
Show file tree
Hide file tree
Showing 4 changed files with 4,322 additions and 4,457 deletions.
6 changes: 3 additions & 3 deletions src/Camera.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const Camera = React.forwardRef((props: CameraProps, ref) => {
}));

const transformedProps: CameraProps = { ...props };
transformedProps.ratioOverlayColor = processColor(props.ratioOverlayColor);
transformedProps.frameColor = processColor(props.frameColor);
transformedProps.laserColor = processColor(props.laserColor);
transformedProps.ratioOverlayColor = processColor(props.ratioOverlayColor) as any;
transformedProps.frameColor = processColor(props.frameColor) as any;
transformedProps.laserColor = processColor(props.laserColor) as any;

return <NativeCamera style={{ minWidth: 100, minHeight: 100 }} ref={nativeRef} {...transformedProps} />;
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const Orientation = {

export default CameraKit;

export { Camera, CameraType, TorchMode, FlashMode, FocusMode, ZoomMode, CameraApi, CaptureData, ResizeMode };
export type { Camera, CameraType, TorchMode, FlashMode, FocusMode, ZoomMode, CameraApi, CaptureData, ResizeMode };
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"jsx": "react-native",
"lib": ["ES6"],
"module": "ES6",
"moduleResolution": "node",
"moduleResolution": "Node16",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down
Loading

0 comments on commit 2995514

Please sign in to comment.