Open mst-mkt opened 2 months ago
The errorMessages in the props of the Camera component is not optional.
Therefore, the following error occurs if props is omitted as follows.
<Camera ref={cameraRef} />
Property 'errorMessages' is missing in type '{ ref: RefObject<CameraType>; aspectRatio: number; }' but required in type 'CameraProps'.ts
To resolve the error, it should be stated as such.
<Camera ref={cameraRef} errorMessages={{}} />
The README is marked as optional, as shown below, so this is considered to be an implementation error. https://github.com/purple-technology/react-camera-pro/blob/master/README.md?plain=1#L74
The errorMessages in the props of the Camera component is not optional.
Therefore, the following error occurs if props is omitted as follows.
To resolve the error, it should be stated as such.
The README is marked as optional, as shown below, so this is considered to be an implementation error. https://github.com/purple-technology/react-camera-pro/blob/master/README.md?plain=1#L74