-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
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
jpicalla-four13, Aldiwildan77, ujex256 and TC023
Metadata
Metadata
Assignees
Labels
No labels