Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type fixes
Browse files Browse the repository at this point in the history
scarlac committed May 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 79ccbb0 commit 2995514
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
@@ -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} />;
});
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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
@@ -9,7 +9,7 @@
"jsx": "react-native",
"lib": ["ES6"],
"module": "ES6",
"moduleResolution": "node",
"moduleResolution": "Node16",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Loading

0 comments on commit 2995514

Please sign in to comment.